vm: fix race condition in timeout
authorAlexis Campailla <alexis@janeasystems.com>
Tue, 17 Dec 2013 15:43:38 +0000 (07:43 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Wed, 18 Dec 2013 23:16:36 +0000 (15:16 -0800)
commitcdc038ceb60cbdd14e98b69e5afc0671ff07c6fc
tree0a716a1d3de0a7e129beee6b3e218c0126977dc3
parent95ee84fabe0b028ef964cc1032cd56a6cf89cb0e
vm: fix race condition in timeout

Eliminate a race condition between uv_async_send and the closing of the
corresponding handle.

Also made errors in Watchdog constructor call abort()

Fixes #6088
src/node_watchdog.cc
src/node_watchdog.h