Linux process in background - “Stopped” in jobs?

后端 未结 4 574
北海茫月
北海茫月 2020-12-13 09:04

I\'m currently running a process with the & sign.

$ example &

However, (please note i\'m a newbie to Linux) I realised

4条回答
  •  情歌与酒
    2020-12-13 09:58

    From what I can gather.

    Background jobs are blocked from reading the user's terminal. When one tries to do so it will be suspended until the user brings it to the foreground and provides some input. "reading from the user's terminal" can mean either directly trying to read from the terminal or changing terminal settings.

    Normally that is what you want, but sometimes programs read from the terminal and/or change terminal settings not because they need user input to continue but because they want to check if the user is trying to provide input.

    http://curiousthing.org/sigttin-sigttou-deep-dive-linux has the gory technical details.

提交回复
热议问题