]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/push.c
1 /* push.c - push a fork into the background */
3 static char ident
[] = "@(#)$Id: push.c,v 1.3 1992/12/15 00:20:22 jromine Exp $";
14 for (i
= 0; i
< 5; i
++) {
21 (void) signal (SIGHUP
, SIG_IGN
);
22 (void) signal (SIGINT
, SIG_IGN
);
23 (void) signal (SIGQUIT
, SIG_IGN
);
24 (void) signal (SIGTERM
, SIG_IGN
);
26 (void) signal (SIGTSTP
, SIG_IGN
);
27 (void) signal (SIGTTIN
, SIG_IGN
);
28 (void) signal (SIGTTOU
, SIG_IGN
);
30 (void) freopen ("/dev/null", "r", stdin
);
31 (void) freopen ("/dev/null", "w", stdout
);
40 advise (NULLCP
, "unable to fork, so can't push...");