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]);
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to