![]() |
server-infinite loop
okay i accidently set an infinite loop inside my server, in other words i coded it so that the server wouldnt close until that particular while loop ends, and the prob is ... it;s an infinite while loop!
now i really need to exit the server, what step do i need to take?? i think the server code is still running |
Press and hold the power button. :P
Why do I get the feeling you do not have physical access to the server? Oh dear... |
Quote:
|
Umm, I assume you are running a flavour of Unix? I'm a bit flaky on my commands, but assuming you can get access to a command line, can you just kill the process?
|
Quote:
i tried logging out of Putty and then going back again, that did not help |
If you can get to a command line, read this on how to kill a process - http://www.ss64.com/bash/kill.html
[EDIT] You may want to read this one too, to find out which process to kill - http://www.ss64.com/bash/ps.html |
Quote:
I have no idea what that means! |
Oh my, I'm not sure if there's much more I can suggest, I'm not very experienced with linux unfortunately.
|
Try running the top command. If you apps has an infinite loop it's probably hogging the cpu and so should appear in that list.
Once you get its PID simply press q to exit the list and run kill PID as bivhitscar suggested. |
Quote:
|
| All times are GMT -5. The time now is 1:14 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC