Use SIGPIPE handling on UNIX platforms
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
This commit is contained in:
parent
c1c4f048cb
commit
613354034d
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,9 @@
|
|||
|
||||
#define TEMP_FILENAME_CMP "simple_archiver_compressed_%u.tmp"
|
||||
|
||||
#if SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_COSMOPOLITAN || \
|
||||
SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_MAC || \
|
||||
SIMPLE_ARCHIVER_PLATFORM == SIMPLE_ARCHIVER_PLATFORM_LINUX
|
||||
int is_sig_pipe_occurred = 0;
|
||||
|
||||
void handle_sig_pipe(int sig) {
|
||||
|
@ -47,6 +50,7 @@ void handle_sig_pipe(int sig) {
|
|||
is_sig_pipe_occurred = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
typedef struct SDArchiverInternalToWrite {
|
||||
void *buf;
|
||||
|
|
Loading…
Reference in a new issue