[FFmpeg-trac] #10834(undetermined:new): ffmpeg does not gracefully stops when receiving SIGTERM

FFmpeg trac at avcodec.org
Mon Aug 25 17:51:05 EEST 2025


#10834: ffmpeg does not gracefully stops when receiving SIGTERM
-------------------------------------+-------------------------------------
             Reporter:  razvan       |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  pulseaudio   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by pjw91):

 Without `-nostdin`, both 'q' and Ctrl+C DO NOT gracefully shutdown ffmpeg.

 With `-nostdin`, both 'q' and Ctrl+C DO gracefully shutdown ffmpeg.

 The bug is introduced since the following commit:
 https://github.com/FFmpeg/FFmpeg/commit/d119ae2fd82a494d9430ff4d4fc262961a68c598

 It seems that the removal of `while (!received_sigterm) {` within `static
 int transcode(Scheduler *sch)` causes this issue.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10834#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list