summaryrefslogtreecommitdiff
path: root/src/cares_wrap.cc
diff options
context:
space:
mode:
authorEvan Lucas <evanlucas@me.com>2015-09-16 10:12:41 -0500
committerEvan Lucas <evanlucas@me.com>2015-09-17 15:25:14 -0500
commit870229e66529309dfea932c52d718ddc2d734966 (patch)
treefe8047c3f6d233cebcedb1da66800f9936dc1644 /src/cares_wrap.cc
parent1fa0cb83e323db6d077e0e9970f3776eb5805140 (diff)
downloadandroid-node-v8-870229e66529309dfea932c52d718ddc2d734966.tar.gz
android-node-v8-870229e66529309dfea932c52d718ddc2d734966.tar.bz2
android-node-v8-870229e66529309dfea932c52d718ddc2d734966.zip
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/cares_wrap.cc')
-rw-r--r--src/cares_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index 4ef5e01e77..b3181da135 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -1067,7 +1067,7 @@ static void GetAddrInfo(const FunctionCallbackInfo<Value>& args) {
break;
default:
CHECK(0 && "bad address family");
- abort();
+ ABORT();
}
GetAddrInfoReqWrap* req_wrap = new GetAddrInfoReqWrap(env, req_wrap_obj);
@@ -1193,7 +1193,7 @@ static void SetServers(const FunctionCallbackInfo<Value>& args) {
break;
default:
CHECK(0 && "Bad address family.");
- abort();
+ ABORT();
}
if (err)