X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/c29f2fccbf0d388644e29ea3e98c38a343688bd2..f64cfb2378dc3a60cd30c50180a366ec54b98781:/rpc.subproj/pmap_wakeup.c diff --git a/rpc.subproj/pmap_wakeup.c b/rpc.subproj/pmap_wakeup.c index 4d302e6..920ae86 100644 --- a/rpc.subproj/pmap_wakeup.c +++ b/rpc.subproj/pmap_wakeup.c @@ -6,7 +6,7 @@ #include "pmap_wakeup.h" -void pmap_wakeup(void) +int pmap_wakeup(void) { struct sockaddr_un sun; int fd; @@ -19,13 +19,14 @@ void pmap_wakeup(void) fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd == -1) - return; + return -1; if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) == -1) { close(fd); - return; + return -1; } read(fd, &b, sizeof(b)); close(fd); + return 0; }