diff options
Diffstat (limited to 'miscutils/conspy.c')
-rw-r--r-- | miscutils/conspy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/miscutils/conspy.c b/miscutils/conspy.c index 721eb6d59..9c5405332 100644 --- a/miscutils/conspy.c +++ b/miscutils/conspy.c | |||
@@ -17,7 +17,7 @@ | |||
17 | //config:config CONSPY | 17 | //config:config CONSPY |
18 | //config: bool "conspy" | 18 | //config: bool "conspy" |
19 | //config: default n | 19 | //config: default n |
20 | //config: depends on PLATFORM_LINUX | 20 | //config: select PLATFORM_LINUX |
21 | //config: help | 21 | //config: help |
22 | //config: A text-mode VNC like program for Linux virtual terminals. | 22 | //config: A text-mode VNC like program for Linux virtual terminals. |
23 | //config: example: conspy NUM shared access to console num | 23 | //config: example: conspy NUM shared access to console num |
@@ -316,10 +316,8 @@ static NOINLINE void start_shell_in_child(const char* tty_name) | |||
316 | int pid = xvfork(); | 316 | int pid = xvfork(); |
317 | if (pid == 0) { | 317 | if (pid == 0) { |
318 | struct termios termchild; | 318 | struct termios termchild; |
319 | char *shell = getenv("SHELL"); | 319 | const char *shell = get_shell_name(); |
320 | 320 | ||
321 | if (!shell) | ||
322 | shell = (char *) DEFAULT_SHELL; | ||
323 | signal(SIGHUP, SIG_IGN); | 321 | signal(SIGHUP, SIG_IGN); |
324 | // set tty as a controlling tty | 322 | // set tty as a controlling tty |
325 | setsid(); | 323 | setsid(); |