summaryrefslogtreecommitdiff
path: root/etc.BSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-09 17:11:18 +0000
committerRoy Marples <roy@marples.name>2007-04-09 17:11:18 +0000
commit89ac4eee26d07f9e62dcc518d386551e8eef40ad (patch)
tree06e2513cc2a6d17b4351995779e56dde9c31c752 /etc.BSD
parent3c7c1736b7d6b6d086e9c5b54b963f8e244e3418 (diff)
downloadopenrc-89ac4eee26d07f9e62dcc518d386551e8eef40ad.tar.gz
openrc-89ac4eee26d07f9e62dcc518d386551e8eef40ad.tar.bz2
openrc-89ac4eee26d07f9e62dcc518d386551e8eef40ad.tar.xz
rc does not need SIGCHLD handler. Also, always return 0 in /etc/rc as non zero for default may freeze system.
Diffstat (limited to 'etc.BSD')
-rw-r--r--etc.BSD/rc10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc.BSD/rc b/etc.BSD/rc
index 64fb4df..13a192a 100644
--- a/etc.BSD/rc
+++ b/etc.BSD/rc
@@ -11,4 +11,12 @@
RUNLEVEL="1" /sbin/rc sysinit || exit 1
RUNLEVEL="1" /sbin/rc boot || exit 1
-/sbin/rc default || exit 1
+PREVLEVEL="1" /sbin/rc default
+
+# If we return non zero after starting rc then 2 things may happen
+# 1) We get the message "init: can't get /dev/console for controlling terminal"
+# every few seconds
+# 2) We get no error and console freezes.
+# This is probably a bug somewhere in rc, but until that is fixed we have to
+# return 0.
+exit 0