diff options
author | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-13 14:52:33 +0000 |
commit | 3ca80efd3ae02267b3cd6ee92f92c592e3892a1e (patch) | |
tree | 47aae64b409356a4bf073cd33de8d06645f2ff88 /usr.bin/tn3270 | |
parent | 528a0157d45bb4f11b9858153bbea5ecb7dafd3a (diff) | |
download | FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.zip FreeBSD-src-3ca80efd3ae02267b3cd6ee92f92c592e3892a1e.tar.gz |
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r-- | usr.bin/tn3270/sys_curses/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 67b31af..68a8e5f 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -722,9 +722,9 @@ char *argv[]; child_died(); /* Start up signal handler */ shell_active = 1; /* We are running down below */ - if (shell_pid = vfork()) { + if (shell_pid = fork()) { if (shell_pid == -1) { - perror("vfork"); + perror("fork"); (void) close(serversock); } else { state = UNCONNECTED; |