Index: content/public/common/zygote_fork_delegate_linux.h |
diff --git a/content/public/common/zygote_fork_delegate_linux.h b/content/public/common/zygote_fork_delegate_linux.h |
index 39833c5262ec7334f486fef1cfb71b9c273d5157..4f3b43aa39c5293820667b777051dfadacfaddc7 100644 |
--- a/content/public/common/zygote_fork_delegate_linux.h |
+++ b/content/public/common/zygote_fork_delegate_linux.h |
@@ -49,18 +49,19 @@ class ZygoteForkDelegate { |
enum { |
// Used to pass in the descriptor for talking to the Browser |
kBrowserFDIndex, |
- // The next two are used in the protocol for discovering the |
- // child processes real PID from within the SUID sandbox. See |
- // http://code.google.com/p/chromium/wiki/LinuxZygote |
- kDummyFDIndex, |
+ // Used to pass in the descriptor for talking to the fork parent process. |
+ // After forking, the child process is responsible for discovering its own |
+ // global process ID and sending it to the parent via this descriptor. |
+ // See http://code.google.com/p/chromium/wiki/LinuxZygote |
kParentFDIndex, |
kNumPassedFDs // Number of FDs in the vector passed to Fork(). |
}; |
// Delegate forks, returning a -1 on failure. Outside the |
// suid sandbox, Fork() returns the Linux process ID. |
- // This method is not aware of any potential pid namespaces, so it'll |
- // return a raw pid just like fork() would. |
+ // The child process is expected to send its global pid to the parent process |
+ // (see kParentFDIndex above), but this function still returns a raw pid just |
+ // like fork() would. |
// Delegate is responsible for communicating the channel ID to the |
// newly created child process. |
virtual pid_t Fork(const std::string& process_type, |