projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On today's systems fork() will hardly fail, thus removed the fork retry loops.
[mmh]
/
uip
/
whatnow.c
diff --git
a/uip/whatnow.c
b/uip/whatnow.c
index
761fea1
..
b809ebe
100644
(file)
--- a/
uip/whatnow.c
+++ b/
uip/whatnow.c
@@
-770,15
+770,13
@@
static int
sendfile(char **arg, char *file, int pushsw)
{
pid_t child_id;
sendfile(char **arg, char *file, int pushsw)
{
pid_t child_id;
- int i, vecp;
+ int vecp;
char *vec[MAXARGS];
context_save(); /* save the context file */
fflush(stdout);
char *vec[MAXARGS];
context_save(); /* save the context file */
fflush(stdout);
- for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
- sleep(5);
- switch (child_id) {
+ switch (child_id = fork()) {
case NOTOK:
advise(NULL, "unable to fork, so sending directly...");
/* fall */
case NOTOK:
advise(NULL, "unable to fork, so sending directly...");
/* fall */