projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2dc6a72
)
Work better if the default tty is a file by using /dev/null for input and appending...
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 11 Feb 2007 20:21:48 +0000 (20:21 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 11 Feb 2007 20:21:48 +0000 (20:21 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2496
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
scripts/functions
patch
|
blob
|
history
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>]