unofficial mirror
 help / color / mirror / code / Atom feed
* [PATCH] ignore SIGPIPE so stop callbacks may fire
@ 2014-12-28  4:01 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-12-28  4:01 UTC (permalink / raw)
  To: sox-devel

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:
 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 */

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.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-28 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-28  4:01 [PATCH] ignore SIGPIPE so stop callbacks may fire Eric Wong

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).