Changeset 3802:958585351e28 in roaraudio for roard/lib.c


Ignore:
Timestamp:
05/07/10 23:15:25 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

converted listen socket handling mostly to VIOs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/lib.c

    r3517 r3802  
    2828int lib_run_bg(char * cmd, int infh, int outfh, int errfh, int * closefh, int lenclose) { 
    2929#ifdef ROAR_HAVE_FORK 
    30  pid_t child = fork(); 
     30 pid_t child; 
    3131 int fh[3] = {-1, -1, -1}; 
    3232 int i; 
     33 
     34 ROAR_WARN("lib_run_bg(cmd='%s', ...): This function should never be called. Contact devels."); 
     35 
     36 child = fork(); 
    3337 
    3438 if ( child == -1 ) { 
     
    5458#ifdef ROAR_SUPPORT_LISTEN 
    5559 for (i = 0; i < ROAR_MAX_LISTEN_SOCKETS; i++) 
    56   if ( g_listen[i].socket != -1 ) 
    57    close(g_listen[i].socket); // listen socket. 
     60  if ( g_listen[i].used ) 
     61   roar_vio_close(&(g_listen[i].sock)); // listen socket. 
    5862#endif 
    5963 
Note: See TracChangeset for help on using the changeset viewer.