Is there a way to configure the Linux OOM killer to kill the parent instead of child process? When the child process is killed that parent keeps running in a bad state. I can detect if the child was killed and then exit but I wanted to know if there is a way to tell the OOM killer to kill the parent process instead of sacrificing a child process.