Fix exit code when installing tincd as a service on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 21 Jul 2012 15:10:10 +0000 (17:10 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 21 Jul 2012 15:10:10 +0000 (17:10 +0200)
src/process.c

index 6579259..0e33f26 100644 (file)
@@ -212,7 +212,7 @@ bool detach(void) {
                }
 #else
                if(!statushandle)
-                       exit(install_service());
+                       exit(!install_service());
 #endif
        }