summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-03-28 15:54:03 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-03-28 15:58:00 +0200
commit30a70fa2dab1925b0eaea04f67e3f86b360386dd (patch)
treef47ac9b996ba2ad2645aa00fcac307d683d9dcb7 /Makefile
parentdf2250aa196b674c0783d3ba1862b1cfb5df5719 (diff)
sfeed_curses: ignore SIGCHLD only for non-interactive programs
This is a regression from the introduced change. Else wait(&status) returned -1 and status was uninitialized. The status of the returned program in the markread() function is used to visually show it as read/unread. If the program failed it is assumed the program could not mark it and so it is visually unchanged. Just to be sure also initialize status to -1 (which can never happen normally) since the exitstatus range is 0-255. https://man.openbsd.org/wait#ERRORS [ECHILD]: "No status from the terminated child process is available because the calling process has asked the system to discard such status by ignoring the signal SIGCHLD or setting the flag SA_NOCLDWAIT for that signal."
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions