help / color / mirror / code / Atom feed
* suspended (tty output)
@ 2021-10-24  0:53 Pier Paolo Grassi
  0 siblings, 0 replies; only message in thread
From: Pier Paolo Grassi @ 2021-10-24  0:53 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

hello, I have something like this:

function_that_use_ffmpeg | while read line; do ... done

It appears that ffmpeg access the tty directly, for example when asking for
interactive input

in this case, the process got suspended with the message suspended (tty
if I pipe it to cat, it is not suspended
If it convert the second part of the pipe to a subshell:

function_that_use_ffmpeg | (while read line; do ... done)

it is not suspended.
If I disable job control with setopt nomonitor, it is not suspended.
I wonder why the subshell changes the behaviour, and if I can solve this
problem without using this hack and without disabling job control


Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 1099 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-24  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24  0:53 suspended (tty output) Pier Paolo Grassi

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).