aboutsummaryrefslogtreecommitdiff
path: root/miscutils/conspy.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/conspy.c')
-rw-r--r--miscutils/conspy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/conspy.c b/miscutils/conspy.c
index 3f341ce18..509a0f271 100644
--- a/miscutils/conspy.c
+++ b/miscutils/conspy.c
@@ -309,10 +309,7 @@ static void create_cdev_if_doesnt_exist(const char* name, dev_t dev)
309 309
310static NOINLINE void start_shell_in_child(const char* tty_name) 310static NOINLINE void start_shell_in_child(const char* tty_name)
311{ 311{
312 int pid = vfork(); 312 int pid = xvfork();
313 if (pid < 0) {
314 bb_perror_msg_and_die("vfork");
315 }
316 if (pid == 0) { 313 if (pid == 0) {
317 struct termios termchild; 314 struct termios termchild;
318 char *shell = getenv("SHELL"); 315 char *shell = getenv("SHELL");