Dave Rice (2018-01-11):
> From 0faa2954010feb8428542fc33aa81e898a280c88 Mon Sep 17 00:00:00 2001
> From: Dave Rice <d...@dericed.com>
> Date: Thu, 11 Jan 2018 15:52:36 -0500
> Subject: [PATCH] ffmpeg.c: use sigterm_handler with sigpipe
> 
> Based on a suggestion by Moritz Barsnick at 
> http://ffmpeg.org/pipermail/ffmpeg-user/2018-January/038549.html 
> <http://ffmpeg.org/pipermail/ffmpeg-user/2018-January/038549.html>

SIGTERM is there for a reason. It prevents programs whose output was
closed from continuing needlessly. Ignoring it unconditionally will lose
that property, which is desirable in most cases.

Furthermore, the signal handler you are proposing is designed for
interactive signals and will probably not give the results you want in
this case.

Just use your shell to set it to SIG_IGN when necessary.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to