projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 88/10/18 21:46:24 by bostic
[unix-history]
/
usr
/
src
/
old
/
berknet
/
netdaemon.c
diff --git
a/usr/src/old/berknet/netdaemon.c
b/usr/src/old/berknet/netdaemon.c
index
f3ee27d
..
db24e3e
100644
(file)
--- a/
usr/src/old/berknet/netdaemon.c
+++ b/
usr/src/old/berknet/netdaemon.c
@@
-1,4
+1,4
@@
-static char sccsid[] = "@(#)netdaemon.c 4.
3
(Berkeley) %G%";
+static char sccsid[] = "@(#)netdaemon.c 4.
5
(Berkeley) %G%";
/* sccs id variable */
static char *netdaemon_sid = "@(#)netdaemon.c 1.10";
/* sccs id variable */
static char *netdaemon_sid = "@(#)netdaemon.c 1.10";
@@
-252,8
+252,6
@@
day()
return( 1 ); /* day */
}
return( 1 ); /* day */
}
-int subs;
-
send(jname)
char *jname;
{ /* push those bytes */
send(jname)
char *jname;
{ /* push those bytes */
@@
-465,8
+463,7
@@
forw:
while((pid = fork()) == -1)sleep(2);
if(pid > 0){
while((pid = fork()) == -1)sleep(2);
if(pid > 0){
- if (++subs > 10)
- while( wait(&dummy) != -1) --subs;
+ wait(&dummy);
return(1); /* normal return */
}
/* this is a child, who will go ahead and execute the command */
return(1); /* normal return */
}
/* this is a child, who will go ahead and execute the command */
@@
-478,11
+475,8
@@
forw:
setpgrp();
#endif CCV7
setpgrp();
#endif CCV7
-
- /*
while((pid = fork()) == -1)sleep(2);
if(pid != 0)exit(EX_OK);
while((pid = fork()) == -1)sleep(2);
if(pid != 0)exit(EX_OK);
- */
/* child process which forks and waits */
mktemp(resfile);
/* child process which forks and waits */
mktemp(resfile);