diff options
| author | Erik Troan <ewt@redhat.com> | 2000-02-23 21:04:50 +0000 |
|---|---|---|
| committer | Erik Troan <ewt@redhat.com> | 2000-02-23 21:04:50 +0000 |
| commit | 9118274a4e9df2a574cecc169e5fbca4dc98d2f9 (patch) | |
| tree | b5c9aa7b945a00eab9659d8e81089da31c630af0 /loader/loader.c | |
| parent | 51f5a9e60eea5c47de006440b23e33a996fff3dd (diff) | |
various changes to get better ^C, ^Z handling
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 9e99a581a..0514aba8c 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -32,6 +32,7 @@ #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> +#include <sys/signal.h> #include <sys/socket.h> #include <sys/sysmacros.h> #include <sys/utsname.h> @@ -168,6 +169,9 @@ static void spawnShell(int flags) { logMessage("could not set new controlling tty"); } + signal(SIGINT, SIG_DFL); + signal(SIGTSTP, SIG_DFL); + setenv("LD_LIBRARY_PATH", "/lib:/usr/lib:/usr/X11R6/lib:/mnt/usr/lib:" "/mnt/sysimage/lib:/mnt/sysimage/usr/lib", 1); |
