From 8eb0e5d05aef244455547637479f4790b8715db5 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 28 Sep 2013 00:01:40 -0700 Subject: Use SIGCHLD instead of SIGCLD SIGCLD is a synonym anyway and is not specified by POSIX. --- paludis/util/process.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paludis/util/process.cc b/paludis/util/process.cc index 833a238ff..0a5a31274 100644 --- a/paludis/util/process.cc +++ b/paludis/util/process.cc @@ -791,13 +791,13 @@ Process::run() { if (_imp->as_main_process) { - /* Ignore CLD. POSIX may or may not say that if we do this, our child will + /* Ignore CHLD. POSIX may or may not say that if we do this, our child will * not become a zombie. */ struct sigaction act; sigemptyset(&act.sa_mask); act.sa_handler = SIG_IGN; act.sa_flags = 0; - sigaction(SIGCLD, &act, nullptr); + sigaction(SIGCHLD, &act, nullptr); pid_t p(fork()); if (-1 == p) -- cgit v1.2.3