[FFmpeg-trac] #42(FFmpeg:open): don't read stdin when running in a noninteractive shell

FFmpeg trac at avcodec.org
Fri Aug 26 10:16:27 CEST 2011


#42: don't read stdin when running in a noninteractive shell
---------------------------------------+---------------------
Reporter:  taeuber                     |       Owner:
    Type:  enhancement                 |      Status:  open
Priority:  wish                        |   Component:  FFmpeg
 Version:  git                         |  Resolution:
Keywords:  noninteractive shell stdin  |  Blocked By:
Blocking:                              |  Reproduced:  0
Analyzed:  0                           |
---------------------------------------+---------------------

Comment (by taeuber):

 We need to check for being a foreground process only if we are an
 interactive process.

 {{{
 int accept_stdin_commands = 0;
 if interactive()
     if foreground_process()
         accept_stdin_commands = 1;
 }}}

 But being a foreground process can change during execution!
 So we should expect the user to be smart enough to know the implications
 about background processes.

 Lars

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/42#comment:8>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list