LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2005, 03:53 AM   #1
iclinux
Member
 
Registered: Dec 2004
Posts: 69

Rep: Reputation: 15
how to prevent process from being killed?


is there an easy and effective way?

Regards
 
Old 01-14-2005, 04:02 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi

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

regards
 
Old 01-14-2005, 04:07 AM   #3
iclinux
Member
 
Registered: Dec 2004
Posts: 69

Original Poster
Rep: Reputation: 15
hi masand,

to prevent another process.
 
Old 01-14-2005, 04:20 AM   #4
iclinux
Member
 
Registered: Dec 2004
Posts: 69

Original Poster
Rep: Reputation: 15
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.
 
Old 01-14-2005, 04:27 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 01-14-2005, 04:30 AM   #6
iclinux
Member
 
Registered: Dec 2004
Posts: 69

Original Poster
Rep: Reputation: 15
thanks
 
Old 01-14-2005, 05:51 AM   #7
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
A superuser (root) can kill any process as far as I know. Not like Windows where some processes are somehow more important then me.
 
Old 01-14-2005, 11:43 PM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

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

Dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of Memory: Killed process maenho Linux - Software 3 10-16-2005 06:06 AM
ssh-agent process not killed Notwerk Fedora 0 06-20-2005 08:07 AM
Java compiler process got KILLED nosaku Slackware 5 02-08-2005 10:34 AM
Killed Process Problem chr Slackware 2 05-06-2003 02:33 AM
process is getting killed automatically chens_83 Linux - General 2 09-16-2002 04:52 AM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration