svn commit: r214731 - stable/8/usr.bin/truss
Ed Schouten
ed at FreeBSD.org
Wed Nov 3 10:23:06 UTC 2010
Author: ed
Date: Wed Nov 3 10:23:06 2010
New Revision: 214731
URL: http://svn.freebsd.org/changeset/base/214731
Log:
MFC r214105:
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.
Modified:
stable/8/usr.bin/truss/setup.c
Directory Properties:
stable/8/usr.bin/truss/ (props changed)
Modified: stable/8/usr.bin/truss/setup.c
==============================================================================
--- stable/8/usr.bin/truss/setup.c Wed Nov 3 10:12:13 2010 (r214730)
+++ stable/8/usr.bin/truss/setup.c Wed Nov 3 10:23:06 2010 (r214731)
@@ -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]);
}
More information about the svn-src-all
mailing list