diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-10-20 09:35:20 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-10-20 09:35:20 +0000 |
commit | a2995e0d9b69c32731a0851d1a5cbf76c4d79d9b (patch) | |
tree | 8f5a1a66afa40ecb7c71d37910fbd398fae063a6 /usr.bin/truss/setup.c | |
parent | 6c872350980217fef8ae96365bd0c4193952ea0c (diff) | |
download | src-a2995e0d9b69c32731a0851d1a5cbf76c4d79d9b.tar.gz src-a2995e0d9b69c32731a0851d1a5cbf76c4d79d9b.zip |
Remove setpgid() call before executing child process.
Using a separate process group here is bad, since (for example) job
control in the TTY layer prevents interaction with the TTY, causing the
child process to hang.
Mentioned on: current@
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=214105
Diffstat (limited to 'usr.bin/truss/setup.c')
-rw-r--r-- | usr.bin/truss/setup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c index ce18f98e7adf..bf23ec760010 100644 --- a/usr.bin/truss/setup.c +++ b/usr.bin/truss/setup.c @@ -78,7 +78,6 @@ setup_and_wait(char *command[]) } if (pid == 0) { /* Child */ ptrace(PT_TRACE_ME, 0, 0, 0); - setpgid (0, 0); execvp(command[0], command); err(1, "execvp %s", command[0]); } |