DescriptionFix deadlock in process exit handling
As glibc allocation routines are not re-entrant avoid calling delete in signal handler.
Instead the message send from the signal handler on process exit contains both the pid and the exit code. The internal _Process object always installs a data handler for the exit message and calls back into C++ to cleanup the resources allocated for running a process.
Changed the ActiveProcess (renamed to ProcessInfo) to form an explicitly linked list.
R=ager@google.com
BUG=dart:1
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=325
Patch Set 1 #Patch Set 2 : Minor fixes #
Total comments: 8
Patch Set 3 : Addressed review comments from @ager #
Messages
Total messages: 4 (0 generated)
|