8 #define FATAL "bouncesaying: fatal: "
18 strerr_die1x(100,"bouncesaying: usage: bouncesaying error [ program [ arg ... ] ]");
23 strerr_die2sys(111,FATAL,"unable to fork: ");
25 execvp(argv[2],argv + 2);
26 if (error_temp(errno)) _exit(111);
29 if (wait_pid(&wstat,pid) == -1)
30 strerr_die2x(111,FATAL,"wait failed");
31 if (wait_crashed(wstat))
32 strerr_die2x(111,FATAL,"child crashed");
33 switch(wait_exitcode(wstat)) {
35 case 111: strerr_die2x(111,FATAL,"temporary child error");
40 strerr_die1x(100,argv[1]);