Unix STOPPED source process abnormally

I ran a perl script in the background using the following command

nohup perl myPerlSCript.pl >debug_log &

A few minutes later I received the status

[1] + Stopped

I did not expect him to stop, and I do not know what stopped him. How can I debug this and find out why it stopped? I'm really interested in knowing unix commands for debugging.

+5
source share
2 answers

There are several ways to stop a process running in the background. All of them include one of the following signals:

  • SIGSTOP
  • SIGTSTP
  • SIGTTOU
  • SIGTTIN

SIGSTOPis serious. It is non-blocking, unresponsive, uncontrollable. He stops the process as confidently as he SIGKILLkills him. Others may be handled by the background process to prevent a stop.

  • , kill(2), , raise(3) kill(2)
  • , tostop (. stty -a). SIGTTOU.
  • tcsetattr(3) ioctl. ( , stty.) SIGTTOU tostop.
  • . SIGTTIN.

, , .

+3

tcsh? Tcsh nohup, , , , .

/usr/bin/nohup , .

+1

All Articles