Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2010 09:35:21 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214105 - head/usr.bin/truss
Message-ID:  <201010200935.o9K9ZLdd044514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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]);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010200935.o9K9ZLdd044514>