sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit a58fa45f25da4f18d7b8c1a815884f67b965406f
parent 30a70fa2dab1925b0eaea04f67e3f86b360386dd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 28 Mar 2022 18:01:22 +0200

sfeed_curses: fix-up from previous commit: properly initialize struct sigaction

Diffstat:
Msfeed_curses.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -566,11 +566,12 @@ processexit(pid_t pid, int interactive) pid_t wpid; struct sigaction sa; + memset(&sa, 0, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_flags = SA_RESTART; /* require BSD signal semantics */ + if (interactive) { /* ignore SIGINT (^C) in parent for interactive applications */ - memset(&sa, 0, sizeof(sa)); - sigemptyset(&sa.sa_mask); - sa.sa_flags = SA_RESTART; /* require BSD signal semantics */ sa.sa_handler = SIG_IGN; sigaction(SIGINT, &sa, NULL); /* wait for process to change state */