Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
dns2go client messed up somehow so i had to quit it then restart it. i push ctrl+z to stop it then i push up to start the process again "waiting for process 1492 to end" and it said the process was paused so i assumed that i never killed the program. look in my trusty manual to see what the kill command is, here are the commands i tried:
kill -signal 1492 //says that it does not understand the signal command even though my book says the command exists
killall -g dns2go //closes 1 process but not the other 7
exit //cannot log out, 8 processes are stopped
quit //does nothing
i tried kill -l and killall -l but NEITHER listed the dns2go process so how the hell am i supposed to log out!?!?!? if i can't kill the process then wtf do i do?
Run 'man 7 signal' to find out what all the signals are. 9 is equivalent to a SIGKILL. If you don't like remembering numbers you can also use the signal name.
The kill command is one of the bash builtins. Do a man bash and look for kill there. I guess mandrake decided to cut costs and not include a separate man page for kill.
I actually got 3 zombies that don't want to go to h****, even at my sweetest invitations.
a kill -s 9 PID
does nothing, the just keep hanging around.
I so far got everything killed with sigkill, but now I am baffled. What can I do? Do I have to restart the system, like a stupid Windows OS? (Would not like that, I got linux)
Don't want to follow the stupid advice of some moron Windows Admin "A reboot is always good".
Originally posted by linuxcool The kill command is one of the bash builtins. Do a man bash and look for kill there. I guess mandrake decided to cut costs and not include a separate man page for kill.
Also sometimes a separate binary, your slack will have it, /bin/kill. Perhaps being specific /bin/kill -9 PID will work ?
Originally posted by browny_amiga
Don't want to follow the stupid advice of some moron Windows Admin "A reboot is always good".
you gotta hate that windows memory management huh...
a program is not allowed to create a default disposition for a SIGKILL signal (as opposed to a SIGTERM signal)...thus it cannot handle the SIGKILL itself and it will die.
man 2 signal should teach you more about the way the signal works (if you are a C programmer)
i noticed kill doesn't do all that much for me most of the times, but i just dont use it anymore..
i just issue the command:
killall -15
or if that don't work, we'll make it work
killall -9
No, I am NOT, of course I am not using PID as PID number. I use the task number, the actual one. I got three tasks hanging around (state defunct), listed as zombies and all the bullets and sacred water does not do a damn.
I tried to kill them about 10 times already, and they won't leave. This is kind of getting tricky. I could do a reboot, but I am kind of curious how to solve this sucker.
Could I make them crash? Is there a way to do a segmentation fault on these programms? That they are removed by the system?
"A zombie process sticks around until either its parent dies without it being assigned a new parent or until its parent checks its exit status (the 'performing an autopsy' the previous poster mentioned).
The metaphor extends a bit more, because you can't kill a zombie process the way you can kill normal processes - because you can't kill something that's already dead =)"
That link seems to be mostly a discussion of metaphors, but I think the idea of the parent process keeping the affected process in existence may be apropos here.
Also,
Quote:
No, I am NOT, of course I am not using PID as PID number.
Yes, zombies cannot be killed because they are undead (you can't overkill something, if it is dead and you shoot it again, it doesn't change)
The thing is just that I don't like this thing at all. I remember having killed zombie processes before, but this time it just won't work. I always (so far) thought and hoped that linux is consistent, meaning that with - SIGKILL you can get rid of everything. I heard from somebody that sometimes you can't and did not believe/like it, because it scratches my vision of linux as an OS with non of these windows anomalies.
so I have found it then.
Anybody reading this knows how I sent these zombies to hell? Anything will do, overwrite their memory space, make them misbehave more that the OS will kick them out? Can I make them crash, remove them artificially from the process list, write some nasty stuff into /proc that will make the OS vomit them out?
I know I can reboot, but this is a challenge to me. There MUST BE A SOLUTION. In linux, there is always one. It is OPEN source, you can see inside, that's the thing.
Another thought: so, if I restart the system, it should hang with these processes, and not terminate, right? Since it cannot kill them with sigterm and sigkill, what else is there?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Quote:
Originally posted by itsjustme ... I think the idea of the parent process keeping the affected process in existence may be apropos here.
Not that I would know how to do it, but can't you affect the parent process in a way to make it terminate the undead (e.g. trying to reanimate them and failing...)? Good hunting .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.