-/* $OpenBSD: shutdown.c,v 1.4 1996/09/02 12:21:57 deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
#else
-static char rcsid[] = "$OpenBSD: shutdown.c,v 1.4 1996/09/02 12:21:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: shutdown.c,v 1.5 1996/09/20 07:12:57 deraadt Exp $";
#endif
#endif /* not lint */
(void)printf("\nkill -HUP 1\n");
#else
if (doreboot) {
- execle(_PATH_REBOOT, "reboot", "-l", nosync, 0);
+ execle(_PATH_REBOOT, "reboot", "-l", nosync, NULL, NULL);
syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_REBOOT);
perror("shutdown");
}
else if (dohalt) {
- execle(_PATH_HALT, "halt", "-l", nosync, 0);
+ execle(_PATH_HALT, "halt", "-l", nosync, NULL, NULL);
syslog(LOG_ERR, "shutdown: can't exec %s: %m.", _PATH_HALT);
perror("shutdown");
}