diff options
author | ed <ed@FreeBSD.org> | 2010-10-20 09:35:20 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-10-20 09:35:20 +0000 |
commit | e24538c77017c07a9531d772b981471a82ca23fd (patch) | |
tree | 8f5a1a66afa40ecb7c71d37910fbd398fae063a6 /usr.bin/truss | |
parent | 3def9492c70837ab8947dad298e61ee047dc4816 (diff) | |
download | FreeBSD-src-e24538c77017c07a9531d772b981471a82ca23fd.zip FreeBSD-src-e24538c77017c07a9531d772b981471a82ca23fd.tar.gz |
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
Diffstat (limited to 'usr.bin/truss')
-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 ce18f98..bf23ec7 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]); } |