Message Board


Message Board > Fenix / Bennu / Gemix / DIV > How to kill a process

June 15, 2006, 23:30
yonni
None
420 posts
Ok, I can't get rid of processes once I have started them. I've tried sending an s_kill signal to them, i've tried putting "return 0;" in them, i've tried "let_me_alone();", and it simply will not end the processes.

This results in my game becoming incredibly slow after a few seconds due to the computer processing un-needed processes, and key strokes checked in a process (wich should have been killed) still reacting.

But I don't think this happens with every process I try to kill, as when the game is lost, and i restart it (without actually ending the program) it works properly again, before slowing down, again, due to un-needed/offscreen processes.

And the retarded thing is that when i lose, the way i kill all of the other processes is with "let_me_alone();"

Any help?
____________
#
June 15, 2006, 23:44
Fiona
games are terrible
-9616558 posts

That's wrong.
Post code? Fenix version?
____________
laffo
#
June 16, 2006, 00:06
Deadmaster
Where is Johnny?
458 posts
Maybe you've got "let_me_alone();" before you call a process?
____________
My site still needs updating and redesigning. My last.fm page.

GO TO TEXTUAL ANARCHY II YOU FISHDOG YOU
#
June 16, 2006, 02:37
Rhovanion
Exterminated
666 posts
if you signal() to an ID (1 process) make sure the ID of the process is still in the variable; or use get_id();

if they won't end there is something wrong with your fenix version.

try this

Code:
program test;
begin
     //you can comment 2 of these three statements to test things seperately
     return 0;
     signal(id, s_kill); //I hope this is done instantly
     do();
     //-------
     write(0,100,100,0,"there is a bug in my fenix version");
     loop frame; end
end

process do()
begin
     let_me_alone();


end

does it loop and say "there is a bug in my fenix version" or does the program terminate? If it terminates there is nothing wrong with signal(); or let_me_alone();

I didn't test the code (don't have fenix installed), but normally it should work... other people try it out and see what it does. It should terminate as if nothing ever happened.

EDIT: what's wrong with the [_code_] tags? I have to write the last world under the closing tag.

[Edited on June 16, 2006 by Rhovanion]
____________
#
June 18, 2006, 17:16
yonni
None
420 posts
I've tried fenix versions 0.84a and 0.84b, and both do the same thing
____________
#
June 18, 2006, 18:59
PEader
お前はもう死んでいる
1486 posts

You need to post some code demonstrating this problem.
____________
I see 57,005 people.
#
June 18, 2006, 23:50
Rhovanion
Exterminated
666 posts
Try it on a different computer?

What OS are you running? Windows XP Pro/Home?
____________
#
June 19, 2006, 21:56
Rincewind
programmer
1545 posts

It is said that women like to talk about their problems but don't want help having their problems solved. Yonni reminds me of that.

Why aren't you giving us info so we can help you? We cannot just magically fix things without info. I'm convinced this is a user error, so show us some relevant code!
____________
Personal website: http://www.loijson.com
#
June 19, 2006, 22:22
Fiona
games are terrible
-9616558 posts

Quoting Rincewind:
It is said that women like to talk about their problems but don't want help having their problems solved.

It's a lie.
____________
laffo
#
June 19, 2006, 23:23
yonni
None
420 posts
seems to have fixed itself now :S, why couldnt it do that a couple of weeks ago?

I was about to post some code, it was a matter of me being arsed to cut out all the unneccessary bits that you dont need and would just look confusing.
____________
#
June 20, 2006, 14:06
PEader
お前はもう死んでいる
1486 posts

Quoting Ferret:
Quoting Rincewind:
It is said that women like to talk about their problems but don't want help having their problems solved.
It's a lie.

They don't mind them being solved aslong as they have another one to replace it. Oh my gee!
____________
I see 57,005 people.
#
June 20, 2006, 19:37
Rhovanion
Exterminated
666 posts
Quoting PEader:
Quoting Ferret:
Quoting Rincewind:
It is said that women like to talk about their problems but don't want help having their problems solved.
It's a lie.
They don't mind them being solved aslong as they have another one to replace it. Oh my gee!
the "as long as" is quite unnecessary, since there always is one. :laughcry:
____________
#

Message Board > Fenix / Bennu / Gemix / DIV > How to kill a process

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!