LazyUSF input now ignores SIGPIPE, so the lazyusf process terminating abnormally won't cause Cog to terminate

CQTexperiment
Chris Moeller 2014-02-13 21:37:35 -08:00
parent 9cd138384d
commit 6e234756c1
1 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,8 @@
#import "PlaylistController.h"
#include <signal.h>
// #define USF_LOG
@interface psf_file_container : NSObject {
@ -175,6 +177,13 @@ static psf_file_callbacks source_callbacks =
psx_init();
sega_init();
qsound_init();
// BAH
struct sigaction sa;
sa.sa_handler = SIG_IGN;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGPIPE, &sa, NULL);
}
- (NSDictionary *)metadata