Merge pull request #11 from esalaka/master

Fixes minor strange errors with X launching and SIGINT
pull/13/merge
Ghost1227 12 years ago
commit ced5b0240d

@ -125,6 +125,12 @@ case ${flaglist[$binindex]} in
# loop. To solve this problem, export $CDM_SPAWN when `exec'ing $bin and
# only let the shell automatically `exec' cdm when $CDM_SPAWN is not set.
# See also the example shell profile file shipped with the cdm package.
# Also untrap SIGINT and SIGTSTP before spawning process: If this is not
# done, *ANY* child process of *ANY* child (bash) shell will completely
# ignore SIGINT, which is rather confusing, and cannot be undone.
trap - SIGINT SIGTSTP
CDM_SPAWN=$$ exec $bin
;;

@ -77,7 +77,7 @@ if $consolekit; then
fi
# Conform to POSIX and do not use `>&' here.
nohup startx $* > /dev/null 2>&1 &
setsid startx $* > /dev/null 2>&1 &
# If wait(1) returns with a value >128, it was interrupted by kill(1),
# so registration was sucessful.

Loading…
Cancel
Save