diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-24 16:36:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-24 16:36:27 +0000 |
commit | e2bfbd07214512a4c2a208de9818d8c2f3745169 (patch) | |
tree | 8c75874624190df3c6e4dc3220c95e3e9198ffe0 /sbin | |
parent | 612a97b888b0bbde1e50059516a65b9a2527078f (diff) |
give shutdown daemon own session; dima@tejblum.dnttm.rssi.ru
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/shutdown/shutdown.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 986d0a8e970..d3976149175 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shutdown.c,v 1.11 1997/07/25 04:45:53 mickey Exp $ */ +/* $OpenBSD: shutdown.c,v 1.12 1997/08/24 16:36:26 deraadt Exp $ */ /* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94"; #else -static char rcsid[] = "$OpenBSD: shutdown.c,v 1.11 1997/07/25 04:45:53 mickey Exp $"; +static char rcsid[] = "$OpenBSD: shutdown.c,v 1.12 1997/08/24 16:36:26 deraadt Exp $"; #endif #endif /* not lint */ @@ -237,6 +237,7 @@ main(argc, argv) exit(0); } } + setsid(); #endif openlog("shutdown", LOG_CONS, LOG_AUTH); loop(); |