I have a question about the fork() system call at /src/d8-posix.cc:481 <https://github.com/v8/v8/blob/212303d1322308a8515d74421aff4e6032d72869/src/d8-posix.cc#l481> :
- If fork() returns with an error code -1, wouldn't the kill() system call a few lines below at /src/d8-posix.cc:502 <https://github.com/v8/v8/blob/212303d1322308a8515d74421aff4e6032d72869/src/d8-posix.cc#l502> kill every process the user is allowed to kill (besides init) as per the Linux kill() man page <http://linux.die.net/man/2/kill> ? I'm a C++ noob, but just by looking at the code it doesn't seem like wrapping the pid with ZombieProtector would really handle a -1 error code from the fork() system call. I'm writing this post because after reading an article called "fork() can fail: this is important" <http://rachelbythebay.com/w/2014/08/19/fork/>, I started looking at C/C++ libraries that I use for non-error-handled fork() system calls and I think that this could be an example of one. Did I miss something ? -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
