summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-10-20 09:35:20 +0000
committered <ed@FreeBSD.org>2010-10-20 09:35:20 +0000
commite24538c77017c07a9531d772b981471a82ca23fd (patch)
tree8f5a1a66afa40ecb7c71d37910fbd398fae063a6 /usr.bin
parent3def9492c70837ab8947dad298e61ee047dc4816 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.bin/truss/setup.c1
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]);
}
OpenPOWER on IntegriCloud