1 /* This test is not yet added to Makefile */
9 #include <sys/socket.h>
11 static const struct sockaddr sa;
13 int main(int argc, char *argv[])
20 sigaddset(&set, SIGCHLD);
21 sigprocmask(SIG_BLOCK, &set, NULL);
25 loops = atoi(argv[1]);
27 while (--loops >= 0) {
45 /* grandchild: kill child */
50 /* Add various syscalls you want to test here.
51 * strace will decode them and suddenly find
52 * process disappearing.
53 * But leave at least one case "empty", so that
54 * "kill grandchild" happens quicker.
55 * This produces cases when strace can't even
56 * decode syscall number before process dies.
60 break; /* intentional empty */
62 sendto(-1, "Hello cruel world", 17, 0, &sa, sizeof(sa));