LazyUSF input now ignores SIGPIPE, so the lazyusf process terminating abnormally won't cause Cog to terminate
parent
9cd138384d
commit
6e234756c1
|
@ -36,6 +36,8 @@
|
||||||
|
|
||||||
#import "PlaylistController.h"
|
#import "PlaylistController.h"
|
||||||
|
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
// #define USF_LOG
|
// #define USF_LOG
|
||||||
|
|
||||||
@interface psf_file_container : NSObject {
|
@interface psf_file_container : NSObject {
|
||||||
|
@ -175,6 +177,13 @@ static psf_file_callbacks source_callbacks =
|
||||||
psx_init();
|
psx_init();
|
||||||
sega_init();
|
sega_init();
|
||||||
qsound_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
|
- (NSDictionary *)metadata
|
||||||
|
|
Loading…
Reference in New Issue