why do I get “Suspended (tty output)” in one terminal but not in others?

前端 未结 1 428
小鲜肉
小鲜肉 2020-12-06 05:06

Apparently I\'ve done something strange/wrong in a tcsh shell, and now whenever I start an application in the background which prints to stdout the application is suspended

相关标签:
1条回答
  • 2020-12-06 05:40

    This will fix it:

    stty -tostop
    

    From the man page:

    tostop (-tostop)

    Send (do not send) SIGTTOU for background output. This causes background jobs to stop if they attempt terminal output.

    This tostop is normally the default setting, as it's usually undesirable to mix the output of multiple jobs. So most people just want the foreground job to be able to print to the terminal.

    0 讨论(0)
提交回复
热议问题