added setsid() to properly detach from console
authorMartin Willi <martin@strongswan.org>
Mon, 11 Jun 2007 12:21:12 +0000 (12:21 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 11 Jun 2007 12:21:12 +0000 (12:21 -0000)
src/starter/starter.c

index 0bf1d7a..f84d413 100644 (file)
@@ -276,6 +276,7 @@ int main (int argc, char **argv)
                    dup2(fnull, STDERR_FILENO);
                    close(fnull);
                }
+               setsid(); 
            }
            break;
            case -1: