projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Corretta la bibliografia
[gapil.git]
/
sources
/
ForkTest.c
diff --git
a/sources/ForkTest.c
b/sources/ForkTest.c
index 5401e319be20b79d721225d8bd340cafbe060f62..03ddf75eadfe4c37ab7536cbe7d4e0401a0fcc1b 100644
(file)
--- a/
sources/ForkTest.c
+++ b/
sources/ForkTest.c
@@
-26,7
+26,7
@@
*
* Usage: forktest -h give all info's
*
*
* Usage: forktest -h give all info's
*
- * $Id: ForkTest.c,v 1.
5 2001/09/19 17:10:49
piccardi Exp $
+ * $Id: ForkTest.c,v 1.
6 2001/09/21 17:10:51
piccardi Exp $
*
****************************************************************/
/*
*
****************************************************************/
/*
@@
-94,7
+94,7
@@
int main(int argc, char *argv[])
usage();
}
nchild = atoi(argv[optind]);
usage();
}
nchild = atoi(argv[optind]);
- printf("
Test for forking %d child\n"
, nchild);
+ printf("
Process %d: forking %d child\n", getpid()
, nchild);
/* loop to fork children */
for (i=0; i<nchild; i++) {
if ( (pid = fork()) < 0) {
/* loop to fork children */
for (i=0; i<nchild; i++) {
if ( (pid = fork()) < 0) {