From 67a87ad0104d88e8b1711a3831d616598edb30c2 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Sat, 17 Feb 2018 16:03:30 +0000 Subject: remove all references to SIGCLD --- testcld.c | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 testcld.c (limited to 'testcld.c') diff --git a/testcld.c b/testcld.c deleted file mode 100644 index 83212e9..0000000 --- a/testcld.c +++ /dev/null @@ -1,19 +0,0 @@ -#include -#include -#include -#include -#include -int main(void) { - int i; - sigset(SIGCLD, SIG_IGN); - switch (fork()) { - case -1: - return 1; - case 0: - return 0; - default: - sleep(1); - if (wait(&i) == -1 && errno == ECHILD) return 0; - else return 1; - } -} -- cgit v1.2.3