summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/shutdown/shutdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index f892fcf..d9fc5da 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: shutdown.c,v 1.7 1997/06/19 14:28:32 charnier Exp $
*/
#ifndef lint
@@ -196,6 +196,7 @@ main(argc, argv)
if (forkpid)
errx(0, "[pid %d]", forkpid);
}
+ setsid();
#endif
openlog("shutdown", LOG_CONS, LOG_AUTH);
loop();
OpenPOWER on IntegriCloud