aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-sl
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1997-09-23 15:38:57 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1997-09-23 15:38:57 +0000
commitb566b5698c7adba211168e2b7eac2618a6a6ca97 (patch)
treeefe02f4e56149b40f708b643fe91d0222924bbd9 /sysconfig/network-scripts/ifup-sl
parent8335c2a63b5204dbab0575f220075af72e59ea04 (diff)
downloadinitscripts-b566b5698c7adba211168e2b7eac2618a6a6ca97.tar
initscripts-b566b5698c7adba211168e2b7eac2618a6a6ca97.tar.gz
initscripts-b566b5698c7adba211168e2b7eac2618a6a6ca97.tar.bz2
initscripts-b566b5698c7adba211168e2b7eac2618a6a6ca97.tar.xz
initscripts-b566b5698c7adba211168e2b7eac2618a6a6ca97.zip
Disassociate from controlling tty so SIGHUPs won't be generated.
Diffstat (limited to 'sysconfig/network-scripts/ifup-sl')
-rwxr-xr-xsysconfig/network-scripts/ifup-sl4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-sl b/sysconfig/network-scripts/ifup-sl
index c0ad24d5..50ddbad8 100755
--- a/sysconfig/network-scripts/ifup-sl
+++ b/sysconfig/network-scripts/ifup-sl
@@ -5,7 +5,9 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
# become a daemon in case we have to persist.
if [ "$1" != daemon ] ; then
- $0 daemon $*&
+ # disconnect stdin, out, err to disassociate from controlling tty
+ # so that no HUPs will get through.
+ $0 daemon $*& </dev/null >/dev/null 2>/dev/null
exit 0
fi
shift