Changeset 2106:0e025903532b in roaraudio


Ignore:
Timestamp:
07/21/09 16:34:48 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

of cause only write a pidfile if requested by the user ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r2104 r2106  
    10381038 
    10391039#ifdef SUPPORT_PIDFILE 
    1040  if ( roar_vio_open_file(&pidfile_vio, pidfile, O_WRONLY|O_CREAT, 0644) == -1 ) { 
    1041   ROAR_ERR("Can not write pidfile: %s", pidfile); 
    1042  } else { 
    1043   roar_vio_printf(&pidfile_vio, "%i\n", getpid()); 
    1044   roar_vio_close(&pidfile_vio); 
     1040 if ( pidfile != NULL ) { 
     1041  if ( roar_vio_open_file(&pidfile_vio, pidfile, O_WRONLY|O_CREAT, 0644) == -1 ) { 
     1042   ROAR_ERR("Can not write pidfile: %s", pidfile); 
     1043  } else { 
     1044   roar_vio_printf(&pidfile_vio, "%i\n", getpid()); 
     1045   roar_vio_close(&pidfile_vio); 
     1046  } 
    10451047 } 
    10461048#endif 
Note: See TracChangeset for help on using the changeset viewer.