#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 michael): Replying to [comment:5 taeuber]: > Hi Michael, Hi lars > > i found the correct solution: > {{{ > inline int interactive() > { > return isatty(0); i wish it was so simple but isatty is true for a command like ffmpeg -i abc.avi def.avi & and that will then still get stuck without </dev/null -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/42#comment:6> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac