X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2FForkTest.c;fp=listati%2FForkTest.c;h=0000000000000000000000000000000000000000;hp=3ca965f46aabbedc3f2dc42fd94cec9749c62c03;hb=4aa6c51696d2b11c572eccd37238db1691785573;hpb=fd4e2fd24a218ef56953fd5a58d0b3c0bee8acb7 diff --git a/listati/ForkTest.c b/listati/ForkTest.c deleted file mode 100644 index 3ca965f..0000000 --- a/listati/ForkTest.c +++ /dev/null @@ -1,44 +0,0 @@ -#include /* error definitions and routines */ -#include /* C standard library */ -#include /* unix standard library */ -#include /* standard I/O library */ -#include /* string functions */ - -/* Help printing routine */ -void usage(void); - -int main(int argc, char *argv[]) -{ -/* - * Variables definition - */ - int nchild, i; - pid_t pid; - int wait_child = 0; - int wait_parent = 0; - int wait_end = 0; - ... /* handling options */ - nchild = atoi(argv[optind]); - printf("Test for forking %d child\n", nchild); - /* loop to fork children */ - for (i=0; i