Eric Wong
2014-12-28 04:01:47 UTC
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();
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
EW