]> git.saurik.com Git - apple/libinfo.git/blobdiff - rpc.subproj/pmap_wakeup.c
Libinfo-459.40.1.tar.gz
[apple/libinfo.git] / rpc.subproj / pmap_wakeup.c
index 4d302e6087497f01143d18141ee0fe0129ddf3c3..920ae867baf069e4d4c6119a7fd8c17f1e2ae0de 100644 (file)
@@ -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;
 }