[FFmpeg-trac] #8917(undetermined:open): Exit on SIGPIPE or SIGHUP - "-xerror" not working as expected
FFmpeg
trac at avcodec.org
Tue Oct 6 07:48:22 EEST 2020
#8917: Exit on SIGPIPE or SIGHUP - "-xerror" not working as expected
-------------------------------------+-------------------------------------
Reporter: atom | Owner:
Type: defect | Status: open
Priority: normal | Component:
| undetermined
Version: 4.2 | Resolution:
Keywords: sigpipe | Blocked By:
sighup error xerror |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cmiceli):
* status: new => open
Comment:
Hi!
I had a look at the source to see what the current code does and a few
different things were there.
SIGHUP is not handled as a signal, and as per the man page for signals
(https://man7.org/linux/man-pages/man7/signal.7.html) it causes the
software to terminate. A way to test this is to run
{{
ffmpeg -listen 1 -i http://127.0.0.1:9999 -c copy somefile.ogg
}}
and then kill -HUP that process. If that is not the case, I'm happy to
explicitly add a signal handler to that effect as it may vary by platform.
I don't speak for the ffmpeg community at large, but I suspect that it
would be reasonable to be specific about that.
With regards to SIGPIPE, it is explicitly ignored because of a commit
(74cf4a75f74ee3d80d021fc50b05e38bff5940e3). I will raise a question about
it in the developer mailing list because it might be worth changing the
behaviour.
Thanks,
Chris.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8917#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list