From 8df80c351e627591f3fe2033d6691cec750b4b3f Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Tue, 10 Aug 2021 22:31:01 +0530 Subject: [PATCH] Cleanup --- st/st.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/st/st.c b/st/st.c index 1d6039e..3c74120 100644 --- a/st/st.c +++ b/st/st.c @@ -836,7 +836,6 @@ externalpipe(const Arg *arg) break; } close(fd[1]); - /* restore sigpipe handler */ signal(SIGPIPE, psigpipe); } @@ -848,11 +847,9 @@ sigchld(int a) pid_t p; tmp = errno; /* waitpid might change errno */ - while ((p = waitpid(-1, &stat, WNOHANG)) > 0) if (p == pid) goto check; - errno = tmp; /* TODO: in die, printf and exit are not async-signal-safe */