]> git.sesse.net Git - vlc/commitdiff
fix daemon mode when HAVE_DAEMON is defined. fixes #347
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 12 Sep 2005 17:07:41 +0000 (17:07 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 12 Sep 2005 17:07:41 +0000 (17:07 +0000)
src/libvlc.c

index 69b155b540276c02e012c4feb682737262668be7..333726aed77431aac7e92722b7cfb16016b193b7 100644 (file)
@@ -402,7 +402,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
     if( config_GetInt( p_vlc, "daemon" ) )
     {
 #if HAVE_DAEMON
-        if( daemon( 0, 0) != 0 )
+        if( daemon( 1, 0) != 0 )
         {
             msg_Err( p_vlc, "Unable to fork vlc to daemon mode" );
             b_exit = VLC_TRUE;