LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to prevent process from being killed? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-prevent-process-from-being-killed-277620/)

iclinux 01-14-2005 02:53 AM

how to prevent process from being killed?
 
is there an easy and effective way?

Regards

masand 01-14-2005 03:02 AM

hi

are u doing this in a program(to prevent that program from being killed) or another general proces??

regards

iclinux 01-14-2005 03:07 AM

hi masand,

to prevent another process.

iclinux 01-14-2005 03:20 AM

I have to implement a program A that can prevent process B from being killed.
And I can kill B with A by passing A some command...
Both A and B are background application.

I don't know how to do it.

Regards.

masand 01-14-2005 03:27 AM

hi there

why don't u try masking the signals
ignore SIGHUP signal etc

i am not so much in to programming, but i think it can be done that way

have a look at

man signal

regards

iclinux 01-14-2005 03:30 AM

thanks

Haiyadragon 01-14-2005 04:51 AM

A superuser (root) can kill any process as far as I know. Not like Windows where some processes are somehow more important then me.

ilikejam 01-14-2005 10:43 PM

Also, it's not possible to ignore SIGKILL, so I'm not sure that this is possible.

Dave


All times are GMT -5. The time now is 03:36 PM.