Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | reboot: don't wait for processes to die if there are none | 2017-08-22 | 1 | -4/+15 | |
| | | | | | | | | | If processes are already dead, reduce wait times between SIGTERM and SIGKILL and wait time after SIGKILL. The reboot syscall will cause another sync later on, therefore the long wait times are not necessary for disk i/o, either. "makes sense" deraadt@ | ||||
* | s/CPU_LIDSUSPEND/CPU_LIDACTION/ | 2017-06-16 | 1 | -3/+3 | |
| | | | | ok mlarkin | ||||
* | Add a new sysctl machdep.lidaction. The sysctl works as follows: | 2017-03-02 | 1 | -7/+5 | |
| | | | | | | | | | | | | | | | machdep.lidaction=0 # do nothing machdep.lidaction=1 # suspend machdep.lidaction=2 # hibernate lidsuspend is just an alias for lidaction, so if you change one, the other one will have the same value. The plan is to remove machdep.lidsuspend eventually when people have upgraded their /ets/sysctl.conf. discussed with deraadt, who came up with the new MIB name no objections mlarkin ok stsp halex jcs | ||||
* | Pull in <sys/time.h> for struct timespec | 2016-08-27 | 1 | -2/+2 | |
| | | | | | | <sys/fcntl.h> shouldn't be used by userspace; this already uses <fcntl.h> ok deraadt@ | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -2/+1 | |
| | | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | ||||
* | Ignore sysctl failure for CPU_LIDSUSPEND when errno is EOPNOTSUPP. | 2013-02-09 | 1 | -2/+2 | |
| | | | | | Just because CPU_LIDSUSPEND is defined in cpu.h does mean it is actually supported by the hardware. OK miod@ kettenis@ | ||||
* | disable lidsuspend on shutdown | 2012-07-10 | 1 | -1/+18 | |
| | | | | ok phessler@ mpf@ pirofti@ mpi@ | ||||
* | Block all signals before sending SIGTERM to all non-system processes. | 2010-07-23 | 1 | -1/+9 | |
| | | | | | This ensures that we reach the call to reboot(2) without being killed by some other process. OK deraadt@ nicm@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -15/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | it's silly for reboot to poweroff. adapted from diff by diana eichert | 2007-05-11 | 1 | -3/+3 | |
| | |||||
* | delint | 2006-06-01 | 1 | -3/+3 | |
| | | | | ok moritz | ||||
* | if "/etc/rc shutdown" exits 2, attempt powerdown. it does so if | 2006-04-06 | 1 | -4/+7 | |
| | | | | | | | rc.shutdown sets powerdown to YES. From: Michele 'mydecay' Marchetto <mydecay@openbeer.it> but didn't apply, so I redid & added comment to clarify ok mickey theo | ||||
* | variety of cleanups; nofsk@aanet.com.au and I | 2004-07-09 | 1 | -10/+15 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | ansi | 2002-07-03 | 1 | -6/+4 | |
| | |||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -3/+3 | |
| | |||||
* | kill more registers; | 2001-11-05 | 1 | -3/+3 | |
| | | | | millert@ ok | ||||
* | #include <termios.h> | 2001-07-19 | 1 | -2/+3 | |
| | |||||
* | correct type on last arg to execl(); nordin@cse.ogi.edu | 2001-07-09 | 1 | -3/+3 | |
| | |||||
* | return from main() don't exit | 2001-06-04 | 1 | -5/+5 | |
| | |||||
* | Add missing fcntl.h | 2000-04-30 | 1 | -2/+3 | |
| | |||||
* | have shutdown code run /etc/rc with arg of "shutdown"; rc.shutdown becomes completely admin-editable | 1999-09-03 | 1 | -5/+5 | |
| | |||||
* | we need to include sys/wait.h since we use waitpid here | 1999-08-16 | 1 | -2/+3 | |
| | |||||
* | run /etc/rc.shutdown on /dev/console | 1999-07-19 | 1 | -3/+24 | |
| | |||||
* | delete the garbage which does not work | 1998-08-07 | 1 | -21/+5 | |
| | |||||
* | 12 seconds not 30. But I am just about to remove the kill and wait | 1998-08-05 | 1 | -4/+4 | |
| | | | | | | patch. Obviously it was never tested on a machine running a regular compliment of services. On such a machine, it causes a full 12 (was 30) second delay *EVERY TIME*. That's COMPLETELY unreasonable. | ||||
* | sync with NetBSD | 1998-07-12 | 1 | -5/+21 | |
| | |||||
* | ignore SIGPIPE; nathanw@MIT.EDU | 1998-04-25 | 1 | -2/+8 | |
| | |||||
* | use err()/warn()/__progname | 1997-09-03 | 1 | -52/+18 | |
| | | | | document -d | ||||
* | #if __STDC__ --> #ifdef __STDC__ | 1997-07-25 | 1 | -5/+5 | |
| | |||||
* | Support RB_POWERDOWN. | 1997-06-22 | 1 | -9/+21 | |
| | |||||
* | add support for a script called /etc/rc.shutdown | 1997-04-11 | 1 | -2/+19 | |
| | |||||
* | r?index -> strr?chr | 1997-01-17 | 1 | -3/+3 | |
| | |||||
* | getopt(3) returns -1 when out of args, not EOF, whee! | 1997-01-15 | 1 | -3/+3 | |
| | |||||
* | kill (-1, SIGTERM) may find no other processes; netbsd pr#2619, cgd | 1996-07-22 | 1 | -4/+14 | |
| | |||||
* | netbsd pr bin/2618 from cgd, fixed differently | 1996-07-11 | 1 | -3/+11 | |
| | |||||
* | update rcsid | 1996-06-23 | 1 | -1/+2 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+213 | |