Changeset b16fe48fe68f59a62a2c7aa300adaf48d16fa909

Show
Ignore:
Timestamp:
05/07/08 16:57:40 (1 week ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210172260 +0300
git-parent:

[8764d2a1a6b555eaaeec81bc953cc723608f5ebf]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210172260 +0300
Message:

Cache the --daemon value, so we remove the PID file iff we created it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc-common.c

    r146dad5 rb16fe48  
    310310    /* Check for daemon mode */ 
    311311#ifndef WIN32 
    312     if( config_GetInt( p_libvlc, "daemon" )
     312    if( config_GetInt( p_libvlc, "daemon" ) > 0
    313313    { 
    314314#ifdef HAVE_DAEMON 
     
    10341034    char* psz_pidfile = NULL; 
    10351035 
    1036     if( config_GetInt( p_libvlc, "daemon" ) > 0
     1036    if( b_daemon
    10371037    { 
    10381038        psz_pidfile = config_GetPsz( p_libvlc, "pidfile" );