What cretin named both a global and a function "reboot"? Global
changed to Reboot. Submitted by: jkh
This commit is contained in:
parent
cc3840179b
commit
db8ad19dab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2327
@ -115,7 +115,7 @@ state_func_t catatonia __P((void));
|
|||||||
state_func_t death __P((void));
|
state_func_t death __P((void));
|
||||||
|
|
||||||
enum { AUTOBOOT, FASTBOOT } runcom_mode = AUTOBOOT;
|
enum { AUTOBOOT, FASTBOOT } runcom_mode = AUTOBOOT;
|
||||||
int reboot = FALSE;
|
int Reboot = FALSE;
|
||||||
|
|
||||||
void transition __P((state_t));
|
void transition __P((state_t));
|
||||||
state_t requested_transition = runcom;
|
state_t requested_transition = runcom;
|
||||||
@ -562,7 +562,7 @@ single_user()
|
|||||||
if (getsecuritylevel() > 0)
|
if (getsecuritylevel() > 0)
|
||||||
setsecuritylevel(0);
|
setsecuritylevel(0);
|
||||||
|
|
||||||
if (reboot) {
|
if (Reboot) {
|
||||||
/* Instead of going single user, let's halt the machine */
|
/* Instead of going single user, let's halt the machine */
|
||||||
sync();
|
sync();
|
||||||
alarm(2);
|
alarm(2);
|
||||||
@ -1141,7 +1141,7 @@ transition_handler(sig)
|
|||||||
requested_transition = clean_ttys;
|
requested_transition = clean_ttys;
|
||||||
break;
|
break;
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
reboot = TRUE;
|
Reboot = TRUE;
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
requested_transition = death;
|
requested_transition = death;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user