From owner-svn-src-stable@FreeBSD.ORG Wed Nov 3 10:23:06 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 933CF106564A; Wed, 3 Nov 2010 10:23:06 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 816518FC17; Wed, 3 Nov 2010 10:23:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oA3AN6Z7015785; Wed, 3 Nov 2010 10:23:06 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oA3AN6AY015783; Wed, 3 Nov 2010 10:23:06 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201011031023.oA3AN6AY015783@svn.freebsd.org> From: Ed Schouten Date: Wed, 3 Nov 2010 10:23:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214731 - stable/8/usr.bin/truss X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2010 10:23:06 -0000 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]); }