This is useful to allow the "stats" effect to show the incomplete stats if the writing pipe is broken. This is helpful for users of dtas-player[1] to show stats while seeking within portions of a file, as dtas-player will trigger SIGPIPE to stop a sox process before spawning a new one. --- Also submitted here: https://sourceforge.net/p/sox/patches/103/ But I prefer email for discussion, thanks for reading
src/sox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sox.c b/src/sox.c index fcdac94..bab0f45 100644 --- a/src/sox.c +++ b/src/sox.c @@ -2968,6 +2968,7 @@ int main(int argc, char **argv) set_replay_gain(files[i]->ft->oob.comments, files[i]); signal(SIGINT, SIG_DFL); + signal(SIGPIPE, SIG_IGN); /* Loop through the rest of the arguments looking for effects */ add_eff_chain(); -- EW ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel