6 main (int argc, char *argv[])
14 printf ("usage: recursor <string> <depth> <waitp>\n");
19 printf ("%s %s %s %s\n", argv[0], argv[1], argv[2], argv[3]);
21 /* Execute child and wait for it to finish if requested. */
22 if (atoi (argv[2]) != 0)
24 snprintf (buffer, sizeof buffer,
25 "recursor %s %d %s", argv[1], atoi (argv[2]) - 1, argv[3]);
32 printf ("%s %s: dying, retval=%d\n", argv[1], argv[2], retval);