Changeset 198:168dadfccd08 in roaraudio
- Timestamp:
- 07/20/08 21:35:00 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_cmd.c
r197 r198 12 12 } 13 13 14 if ( lib_run_bg(filter->options, ((struct roar_stream*)info)->fh, socks[1], ROAR_STDERR ) == -1 )14 if ( lib_run_bg(filter->options, ((struct roar_stream*)info)->fh, socks[1], ROAR_STDERR, socks, 2) == -1 ) 15 15 return -1; 16 16 -
roard/include/lib.h
r183 r198 6 6 #include <roaraudio.h> 7 7 8 int lib_run_bg(char * cmd, int infh, int outfh, int errfh );8 int lib_run_bg(char * cmd, int infh, int outfh, int errfh, int * closefh, int lenclose); 9 9 10 10 #endif -
roard/lib.c
r186 r198 3 3 #include "roard.h" 4 4 5 int lib_run_bg(char * cmd, int infh, int outfh, int errfh ) {5 int lib_run_bg(char * cmd, int infh, int outfh, int errfh, int * closefh, int lenclose) { 6 6 pid_t child = fork(); 7 7 int fh[3] = {-1, -1, -1}; … … 34 34 midi_free(); // close midi devices 35 35 36 // close fh's we got ask to close: 37 for (i = 0; i < lenclose; i++) 38 close(closefh[i]); 39 36 40 // TODO: what aout the output driver? 37 41
Note: See TracChangeset
for help on using the changeset viewer.