projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Work better if the default tty is a file by using /dev/null for input and appending...
[util-vserver.git]
/
scripts
/
functions
diff --git
a/scripts/functions
b/scripts/functions
index
0edb7a3
..
aa5f9ce
100644
(file)
--- a/
scripts/functions
+++ b/
scripts/functions
@@
-713,8
+713,12
@@
function setDefaultTTY
"$__CONFDIR/.defaults/apps/init/tty" \
$2 /dev/null
- exec <$ttyname
- exec &>$ttyname
+ if test -f "$ttyname"; then
+ exec </dev/null
+ else
+ exec <$ttyname
+ fi
+ exec &>>$ttyname
}
## Usage: killContext <XID> [<SIG>]