Telnet client
[folly.git] / folly / Subprocess.cpp
index 8de5d36979b8e28b1d3cf260cd66083cc9d8b6b3..36c824c3cfe2a773bcf1868c55ea4df952083a4d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -289,14 +289,6 @@ void Subprocess::spawn(
   // child has exited and can be immediately waited for.  In all other cases,
   // we have no way of cleaning up the child.
 
-  if (options.processGroupLeader_) {
-    // This is done both in the parent and the child to avoid the race where
-    // the parent assumes that the child is a leader, but the child has not
-    // yet run setprp().  Not checking error codes since we're deliberately
-    // racing the child, which may already have run execve(), and expect to
-    // lose frequently.
-    setpgid(pid_, pid_);
-  }
   // Close writable side of the errFd pipe in the parent process
   CHECK_ERR(::close(errFds[1]));
   errFds[1] = -1;