Louis I. answered 07/31/19
Computer Science Instructor/Tutor: Real World and Academia Experienced
Background process, hey?
Well that eliminates a user inadvertently typing ctrl-C at keyboard ...
But was it also run with nohup ??
If this is a long-running process that's performing some critical / intensive processing, you might want to run it with nohup (which ignores the hangup signal generated by the terminal going away as well.
$ nohup process param1 param2 &
[1] 9512
nohup: ignoring input and appending output to 'nohup.out'
Then you can review the latest output that the process produced ... if any, before exiting.
I did a bit of research on spontaneous "killing" of user processes by the kernel ... it doesn't happen very often. But when it does, it's typically attributed to critical resource exhaustion.
I don't think I've ever dealt with that sort of thing over decades of Linux/UNIX app experience.
But you can "grep" through (or look through the following system log files for references to your program name (or references to "kill"):
- /var/log/kern.log
- /var/log/dmesg
You may need to do that as root/sudo (get the sys admin involved).