2 * mystop.c - Another handy routine for testing your tiny shell
5 * Sleeps for <n> seconds and sends SIGTSTP to itself.
11 #include <sys/types.h>
15 int main(int argc
, char **argv
)
21 fprintf(stderr
, "Usage: %s <n>\n", argv
[0]);
26 for (i
=0; i
< secs
; i
++)
31 if (kill(-pid
, SIGTSTP
) < 0)
32 fprintf(stderr
, "kill (tstp) error");