diff options
author | comex | 2015-07-11 16:12:18 -0400 |
---|---|---|
committer | comex | 2015-07-11 16:12:18 -0400 |
commit | c3ca6f01a3204ac81397d5abe77c1280d8eb0591 (patch) | |
tree | 1b25d82ae2a006993a491cf0ee03a41e6363518b | |
parent | safety-dance UI fixes (diff) | |
download | substitute-c3ca6f01a3204ac81397d5abe77c1280d8eb0591.tar.gz |
fix anti-noise
Diffstat (limited to '')
-rw-r--r-- | darwin-bootstrap/bundle-loader.c | 2 | ||||
-rw-r--r-- | darwin-bootstrap/substituted.m | 4 | ||||
-rw-r--r-- | lib/darwin/xxpc.h (renamed from lib/xxpc.h) | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/darwin-bootstrap/bundle-loader.c b/darwin-bootstrap/bundle-loader.c index 90ebbf2..49e6152 100644 --- a/darwin-bootstrap/bundle-loader.c +++ b/darwin-bootstrap/bundle-loader.c @@ -2,7 +2,7 @@ #define IB_LOG_TO_SYSLOG #include "ib-log.h" #include "darwin/mach-decls.h" -#include "xxpc.h" +#include "darwin/xxpc.h" #include <dlfcn.h> #include <mach/mach.h> #include <mach/mach_time.h> diff --git a/darwin-bootstrap/substituted.m b/darwin-bootstrap/substituted.m index 28576ea..ca793ba 100644 --- a/darwin-bootstrap/substituted.m +++ b/darwin-bootstrap/substituted.m @@ -1,6 +1,6 @@ #import <Foundation/Foundation.h> #import <CoreFoundation/CoreFoundation.h> -#include "xxpc.h" +#include "darwin/xxpc.h" #include "substitute.h" /* This is a daemon contacted by all processes which can load extensions. It @@ -231,7 +231,7 @@ static void init_peer(xxpc_object_t peer) { xxpc_connection_cancel(peer); xxpc_release(reply); } else if (ty == XXPC_TYPE_ERROR) { - if (event == XXPC_ERROR_CONNECTION_INTERRUPTED) + if (event == XXPC_ERROR_CONNECTION_INVALID) return; NSLog(@"XPC error from peer: %@", event); } else { diff --git a/lib/xxpc.h b/lib/darwin/xxpc.h index 1e2bb5b..88aab7a 100644 --- a/lib/xxpc.h +++ b/lib/darwin/xxpc.h @@ -16,7 +16,10 @@ DEFINE_CONST(XXPC_TYPE_ERROR, _xpc_type_error); DEFINE_CONST(XXPC_TYPE_DICTIONARY, _xpc_type_dictionary); DEFINE_CONST(XXPC_TYPE_ARRAY, _xpc_type_array); DEFINE_CONST(XXPC_TYPE_STRING, _xpc_type_string); -DEFINE_CONST(XXPC_ERROR_CONNECTION_INTERRUPTED, _xpc_error_connection_interrupted); +DEFINE_CONST(XXPC_ERROR_CONNECTION_INTERRUPTED, + _xpc_error_connection_interrupted); +DEFINE_CONST(XXPC_ERROR_CONNECTION_INVALID, + _xpc_error_connection_invalid); #define XXPC_ARRAY_APPEND -1 |