My application runs as a background process on Linux. It is currently started at the command line in a Terminal window.
Recently a user was executing the application for a while and it died mysteriously. The text:
Killed
was on the terminal. This happened two times. I asked if someone at a different Terminal used the kill command to kill the process? No.
Under what conditions would Linux decide to kill my process? I believe the shell displayed "killed" because the process died after receiving the kill(9) signal. If Linux sent the kill signal should there be a message in a system log somewhere that explains why it was killed?
/var/log/messages
(3) The shell under which the process ran which is the process that prints theKilled
notification when the exit status fromwaitpid(2)
indicates the child process died from signal 9. – arielf - Reinstate Monica/var/log/syslog
– Dinei