Changeset 3628:fc6ac3d7d4bf in roaraudio


Ignore:
Timestamp:
03/07/10 20:50:03 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

experimental support for ROAR_DAEMONIMAGE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r3517 r3628  
    679679int roar_socket_open_fork  (int mode, char * host, int port) { 
    680680#if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 
     681 char * daemonimage; 
    681682 int socks[2]; 
    682683 int r; 
     
    685686 if ( mode == MODE_LISTEN ) 
    686687  return -1; 
     688 
     689 // TODO: FIXME: we should move this into the config structure. 
     690 daemonimage = getenv("ROAR_DAEMONIMAGE"); 
     691 
     692 if ( daemonimage == NULL || *daemonimage == 0 ) 
     693  daemonimage = "roard"; 
    687694 
    688695 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) { 
     
    706713  snprintf(fhstr, 7, "%i", socks[1]); 
    707714 
    708   execlp("roard", "roard", "--no-listen", "--client-fh", fhstr, (char*)NULL); 
     715  execlp(daemonimage, daemonimage, "--no-listen", "--client-fh", fhstr, (char*)NULL); 
    709716 
    710717  // we are still alive? 
Note: See TracChangeset for help on using the changeset viewer.