Chromium Code Reviews
DescriptionFix for leaking file descriptor issue
When calling a non-existent executable, a pair of file descriptors will be
created with pipe(). One end goes to the exitcode handler thread, the other end
goes to the epoll() thread.
If an error occurs during process creation, the pipe is still created and the
exit handler thread writes the exitcode to the pipe, but the other file
descriptor is not added to the epoll() set and is therefore leaked. (i.e.
Process_Start ignores the other end of the pipe if exec() failed in
Proces::Start()).
R=sgjesse@google.com
Committed: https://code.google.com/p/dart/source/detail?r=23534
Patch Set 1 #
Total comments: 1
Patch Set 2 : #
Messages
Total messages: 8 (0 generated)
|
|||||||||||||||||||||||||||||||||||||