Changeset 3628:fc6ac3d7d4bf in roaraudio for libroar
- Timestamp:
- 03/07/10 20:50:03 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/socket.c
r3517 r3628 679 679 int roar_socket_open_fork (int mode, char * host, int port) { 680 680 #if !defined(ROAR_TARGET_WIN32) && !defined(ROAR_TARGET_MICROCONTROLLER) 681 char * daemonimage; 681 682 int socks[2]; 682 683 int r; … … 685 686 if ( mode == MODE_LISTEN ) 686 687 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"; 687 694 688 695 if ( socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1 ) { … … 706 713 snprintf(fhstr, 7, "%i", socks[1]); 707 714 708 execlp( "roard", "roard", "--no-listen", "--client-fh", fhstr, (char*)NULL);715 execlp(daemonimage, daemonimage, "--no-listen", "--client-fh", fhstr, (char*)NULL); 709 716 710 717 // we are still alive?
Note: See TracChangeset
for help on using the changeset viewer.