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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-14-2005, 02:53 AM
|
#1
|
Member
Registered: Dec 2004
Posts: 69
Rep:
|
how to prevent process from being killed?
is there an easy and effective way?
Regards
|
|
|
01-14-2005, 03:02 AM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi
are u doing this in a program(to prevent that program from being killed) or another general proces??
regards
|
|
|
01-14-2005, 03:07 AM
|
#3
|
Member
Registered: Dec 2004
Posts: 69
Original Poster
Rep:
|
hi masand,
to prevent another process.
|
|
|
01-14-2005, 03:20 AM
|
#4
|
Member
Registered: Dec 2004
Posts: 69
Original Poster
Rep:
|
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.
|
|
|
01-14-2005, 03:27 AM
|
#5
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
01-14-2005, 03:30 AM
|
#6
|
Member
Registered: Dec 2004
Posts: 69
Original Poster
Rep:
|
thanks
|
|
|
01-14-2005, 04:51 AM
|
#7
|
Member
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400
Rep:
|
A superuser (root) can kill any process as far as I know. Not like Windows where some processes are somehow more important then me.
|
|
|
01-14-2005, 10:43 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
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 11:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|