mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* (no subject)
@ 2005-08-09  7:54 vinay
  0 siblings, 0 replies; only message in thread
From: vinay @ 2005-08-09  7:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: vinays

Hi all.

I have a problem with linux kernel's Out Of Memory (OOM) killer.
I wanted to know, is there any way that we can force OOM killer to send a signal other than SIGKILL to kill a process when ever OOM detects a system memory crunch. 
Actually I have an application that is getting killed by OOM killer when the 
system runs out of memory. It seems like OOM killer is sending SIGKILL to the 
process. As SIGKILL cannot be caught by a process, my application is exiting 
without doing proper cleanup. 
    Is there any way that we can force OOM killer to send a signal other than
SIGKILL ? So that my application can call the signal handler and do proper cleanup before exiting. 

I searched through Google and came acorss some solution -
Like setting the capability of a process to CAP_SYS_RAWIO will force the OOM killer to send SIGTERM. I tried to set the capability of my application to CAP_SYS_RAWIO using capset() system call, but still then OOM killer is sending SIGKILL. 

Could anybody please help me out with this problem ?
Any pointers are welcomed.

Thanks in advance.

Vinay.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-09  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09  7:54 vinay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome