summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-05-07 20:33:08 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-05-07 20:33:08 +0200
commit8b7c95d1a6a3d640e0193f7ab0811694d62cd593 (patch)
tree36cb12f12081e23d9f8f263e7f701745c40eb9c2
parentc64dff716eced3fd554428b8d9e5d2f12ceac9e8 (diff)
sfeed_curses: improve comment
Do not restart the syscall waitpid, explicitly mention not setting SA_RESTART.
-rw-r--r--sfeed_curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_curses.c b/sfeed_curses.c
index d22d16c..a38a25e 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -576,7 +576,7 @@ processexit(pid_t pid, int interactive)
sa.sa_handler = SIG_IGN;
sigaction(SIGINT, &sa, NULL);
- sa.sa_flags = 0; /* do not restart SIGTERM: this interrupts waitpid() */
+ sa.sa_flags = 0; /* SIGTERM: interrupt waitpid(), no SA_RESTART */
sa.sa_handler = sighandler;
sigaction(SIGTERM, &sa, NULL);