Usermode/axwin3 - (minor) Fixed errnous warning about _SysSpawn
authorJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 04:48:37 +0000 (12:48 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sun, 20 Jan 2013 04:48:37 +0000 (12:48 +0800)
Usermode/Applications/axwin3_src/WM/main.c

index 7d2d391..c14cbb5 100644 (file)
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
                sprintf(server_info, "AXWIN3_SERVER=%i", server_tid);
                // TODO: Does the client need FDs?
                 int    rv = _SysSpawn(csInterfaceApp, argv, envp, 0, NULL, NULL);
-               if( rv ) {
+               if( rv < 0 ) {
                        _SysDebug("_SysSpawn chucked a sad, rv=%i, errno=%i", rv, _errno);
                }
        }

UCC git Repository :: git.ucc.asn.au