Deleted Added
full compact
init.c (107995) init.c (108002)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Donn Seeley at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93";
46#endif
47static const char rcsid[] =
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Donn Seeley at Berkeley Software Design, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 31 unchanged lines hidden (view full) ---

40 The Regents of the University of California. All rights reserved.\n";
41#endif /* not lint */
42
43#ifndef lint
44#if 0
45static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 7/15/93";
46#endif
47static const char rcsid[] =
48 "$FreeBSD: head/sbin/init/init.c 107994 2002-12-17 20:39:38Z green $";
48 "$FreeBSD: head/sbin/init/init.c 108002 2002-12-17 21:23:36Z green $";
49#endif /* not lint */
50
51#include <sys/param.h>
52#include <sys/ioctl.h>
53#include <sys/mount.h>
54#include <sys/sysctl.h>
55#include <sys/wait.h>
56#include <sys/stat.h>

--- 675 unchanged lines hidden (view full) ---

732 argv[2] = runcom_mode == AUTOBOOT ? "autoboot" : 0;
733 argv[3] = 0;
734
735 sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) 0);
736
737#ifdef LOGIN_CAP
738 setprocresources(RESOURCE_RC);
739#endif
49#endif /* not lint */
50
51#include <sys/param.h>
52#include <sys/ioctl.h>
53#include <sys/mount.h>
54#include <sys/sysctl.h>
55#include <sys/wait.h>
56#include <sys/stat.h>

--- 675 unchanged lines hidden (view full) ---

732 argv[2] = runcom_mode == AUTOBOOT ? "autoboot" : 0;
733 argv[3] = 0;
734
735 sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) 0);
736
737#ifdef LOGIN_CAP
738 setprocresources(RESOURCE_RC);
739#endif
740 execv(_PATH_RUNCOM, argv + 1);
741 warning("can't exec %s: %m", _PATH_RUNCOM);
742 execv(_PATH_BSHELL, argv);
743 stall("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNCOM);
744 _exit(1); /* force single user mode */
745 }
746
747 if (pid == -1) {
748 emergency("can't fork for %s on %s: %m",
749 _PATH_BSHELL, _PATH_RUNCOM);

--- 744 unchanged lines hidden (view full) ---

1494 argv[2] = "single";
1495 argv[3] = 0;
1496
1497 sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) 0);
1498
1499#ifdef LOGIN_CAP
1500 setprocresources(RESOURCE_RC);
1501#endif
740 execv(_PATH_BSHELL, argv);
741 stall("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNCOM);
742 _exit(1); /* force single user mode */
743 }
744
745 if (pid == -1) {
746 emergency("can't fork for %s on %s: %m",
747 _PATH_BSHELL, _PATH_RUNCOM);

--- 744 unchanged lines hidden (view full) ---

1492 argv[2] = "single";
1493 argv[3] = 0;
1494
1495 sigprocmask(SIG_SETMASK, &sa.sa_mask, (sigset_t *) 0);
1496
1497#ifdef LOGIN_CAP
1498 setprocresources(RESOURCE_RC);
1499#endif
1502 execv(_PATH_RUNDOWN, argv + 1);
1503 warning("can't exec %s: %m", _PATH_RUNDOWN);
1504 execv(_PATH_BSHELL, argv);
1505 warning("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNDOWN);
1506 _exit(1); /* force single user mode */
1507 }
1508
1509 if (pid == -1) {
1510 emergency("can't fork for %s on %s: %m",
1511 _PATH_BSHELL, _PATH_RUNDOWN);

--- 120 unchanged lines hidden ---
1500 execv(_PATH_BSHELL, argv);
1501 warning("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNDOWN);
1502 _exit(1); /* force single user mode */
1503 }
1504
1505 if (pid == -1) {
1506 emergency("can't fork for %s on %s: %m",
1507 _PATH_BSHELL, _PATH_RUNDOWN);

--- 120 unchanged lines hidden ---