[vlc-commits] libvlc: return a real error if daemonizing failed

Rémi Denis-Courmont git at videolan.org
Sun Dec 2 09:22:24 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec  2 10:15:10 2012 +0200| [0c40a30a34ab188c215d43dbcbf29ef1c5b5b6ea] | committer: Rémi Denis-Courmont

libvlc: return a real error if daemonizing failed

(If daemonizing succeeded, daemon() will call exit(0) internally.)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c40a30a34ab188c215d43dbcbf29ef1c5b5b6ea
---

 src/libvlc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 8e342f9..fbb61e4 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -244,7 +244,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         {
             msg_Err( p_libvlc, "Unable to fork vlc to daemon mode" );
             module_EndBank (true);
-            return VLC_EEXIT;
+            return VLC_ENOMEM;
         }
         b_daemon = true;
 



More information about the vlc-commits mailing list