SMOLNET PORTAL home about changes
sfeed_curses: processexit(): remove unneeded code for non-interactive processes - sfeed - RSS and Atom parser
(URL) git clone git://git.codemadness.org/sfeed (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit cc3dd4534bcbbc750d563992b93b1131410a2a76
(DIR) parent f8ef20b2593304fd08a4599edfe3a66aa3a845e3
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Sun, 5 Jun 2022 23:38:22 +0200
sfeed_curses: processexit(): remove unneeded code for non-interactive processes
This was used in commit a58fa45f25da4f18d7b8c1a815884f67b965406f and previous,
but the code for non-interactive process cleanup was later removed, so clearing
the struct is not not needed anymore, because it is unused.
Diffstat:
M sfeed_curses.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -567,11 +567,11 @@ processexit(pid_t pid, int interactive)
{
struct sigaction sa;
- memset(&sa, 0, sizeof(sa));
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_RESTART; /* require BSD signal semantics */
-
if (interactive) {
+ memset(&sa, 0, sizeof(sa));
+ sigemptyset(&sa.sa_mask);
+ sa.sa_flags = SA_RESTART; /* require BSD signal semantics */
+
/* ignore SIGINT (^C) in parent for interactive applications */
sa.sa_handler = SIG_IGN;
sigaction(SIGINT, &sa, NULL);
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed/commit/cc3dd4534bcbb...
Content-Typeapplication/gopher-menu; charset=utf-8