diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-22 09:48:56 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-22 09:48:56 +0000 |
commit | 6fd0e31e872b366231bf0c9de1a0bafdd738a78e (patch) | |
tree | f7dff3d37a07c40cfe028a67e97ff1035abbd7e6 /loginutils/su.c | |
parent | 0246222351a8787e2e726c2526d795440893859c (diff) | |
download | busybox-6fd0e31e872b366231bf0c9de1a0bafdd738a78e.tar.gz |
Patch from Andrew Flegg:
Here's a pretty crude patch to reload /etc/inittab when init receives a
SIGHUP. The mailing list archives weren't entirely clear on whether or
not it should already happen, but didn't appear to be.
The patch:
* Adds a new function, reload_signal() which just calls
parse_inittab() and run_actions(RESPAWN)
* Before entering the while (1) loop set up SIGHUP to call
reload_signal()
* Modify new_init_action to skip the action if the same command
already exists on the same terminal
This last bit means that changing already running entries is a bit
hairy as you can end up with, for example, two shells running on the
same virtual console. However, for solely adding/removing entries this patch
seems to work quite well.
Diffstat (limited to 'loginutils/su.c')
0 files changed, 0 insertions, 0 deletions