svn commit: r214105 - head/usr.bin/truss

Ed Schouten ed at FreeBSD.org
Wed Oct 20 09:35:21 UTC 2010


Author: ed
Date: Wed Oct 20 09:35:20 2010
New Revision: 214105
URL: http://svn.freebsd.org/changeset/base/214105

Log:
  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

Modified:
  head/usr.bin/truss/setup.c

Modified: head/usr.bin/truss/setup.c
==============================================================================
--- head/usr.bin/truss/setup.c	Wed Oct 20 07:54:43 2010	(r214104)
+++ head/usr.bin/truss/setup.c	Wed Oct 20 09:35:20 2010	(r214105)
@@ -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-head mailing list