projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed references to unused default procs and commented config/config.c
[mmh]
/
sbr
/
push.c
diff --git
a/sbr/push.c
b/sbr/push.c
index
b2517b3
..
d664927
100644
(file)
--- a/
sbr/push.c
+++ b/
sbr/push.c
@@
-1,10
+1,10
@@
/*
/*
- * push.c -- push a fork into the background
- *
- * This code is Copyright (c) 2002, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** push.c -- push a fork into the background
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#include <h/signals.h>
#include <h/mh.h>
#include <h/signals.h>
@@
-18,31
+18,31
@@
push(void)
int i;
for (i = 0; (pid = fork()) == -1 && i < 5; i++)
int i;
for (i = 0; (pid = fork()) == -1 && i < 5; i++)
- sleep (5);
+ sleep(5);
switch (pid) {
case -1:
/* fork error */
switch (pid) {
case -1:
/* fork error */
- advise (NULL, "unable to fork, so can't push...");
+ advise(NULL, "unable to fork, so can't push...");
break;
case 0:
/* child, block a few signals and continue */
break;
case 0:
/* child, block a few signals and continue */
- SIGNAL (SIGHUP, SIG_IGN);
- SIGNAL (SIGINT, SIG_IGN);
- SIGNAL (SIGQUIT, SIG_IGN);
- SIGNAL (SIGTERM, SIG_IGN);
+ SIGNAL(SIGHUP, SIG_IGN);
+ SIGNAL(SIGINT, SIG_IGN);
+ SIGNAL(SIGQUIT, SIG_IGN);
+ SIGNAL(SIGTERM, SIG_IGN);
#ifdef SIGTSTP
#ifdef SIGTSTP
- SIGNAL (SIGTSTP, SIG_IGN);
- SIGNAL (SIGTTIN, SIG_IGN);
- SIGNAL (SIGTTOU, SIG_IGN);
+ SIGNAL(SIGTSTP, SIG_IGN);
+ SIGNAL(SIGTTIN, SIG_IGN);
+ SIGNAL(SIGTTOU, SIG_IGN);
#endif
#endif
- freopen ("/dev/null", "r", stdin);
- freopen ("/dev/null", "w", stdout);
+ freopen("/dev/null", "r", stdin);
+ freopen("/dev/null", "w", stdout);
break;
default:
/* parent, just exit */
break;
default:
/* parent, just exit */
- done (0);
+ done(0);
}
}
}
}