Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2015-09-16 18:12:41 +0300
committerEvan Lucas <evanlucas@me.com>2015-09-17 23:25:14 +0300
commit870229e66529309dfea932c52d718ddc2d734966 (patch)
treefe8047c3f6d233cebcedb1da66800f9936dc1644 /src/spawn_sync.cc
parent1fa0cb83e323db6d077e0e9970f3776eb5805140 (diff)
src: Add ABORT macro
Windows 8+ compiled in Release mode exits with code 0xC0000409 when abort() is called. This prevents us from being able to reliably verify an abort exit code (3) on windows. PR-URL: https://github.com/nodejs/node/pull/2776 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'src/spawn_sync.cc')
-rw-r--r--src/spawn_sync.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn_sync.cc b/src/spawn_sync.cc
index 144af3e747d..62fadb4396c 100644
--- a/src/spawn_sync.cc
+++ b/src/spawn_sync.cc
@@ -485,7 +485,7 @@ void SyncProcessRunner::TryInitializeAndRunLoop(Local<Value> options) {
r = uv_run(uv_loop_, UV_RUN_DEFAULT);
if (r < 0)
// We can't handle uv_run failure.
- abort();
+ ABORT();
// If we get here the process should have exited.
CHECK_GE(exit_status_, 0);
@@ -508,7 +508,7 @@ void SyncProcessRunner::CloseHandlesAndDeleteLoop() {
// callbacks called.
int r = uv_run(uv_loop_, UV_RUN_DEFAULT);
if (r < 0)
- abort();
+ ABORT();
CHECK_EQ(uv_loop_close(uv_loop_), 0);
delete uv_loop_;