Re: Stopping phix

new topic     » goto parent     » topic index » view thread      » older message » newer message

Still get the two instances of p hello, whether running it interpreted or compiled.

It doesn't "hang", it comes back to the prompt.

If you add a line to the test, and open a process monitor, you'll see two instances of P, one a zombie. All I can figure is that phix (or the OS, somehow) is invoking p again on startup.

puts(1,"Hello\n") 
system("ps -U irv axjf | grep hello",0) 
?wait_key() -- add this 

BUT WAIT! I may have solved it:

?wait_key() -- add this 
puts(1,"Hello\n") 
system("ps -U irv axjf | grep hello",0) 
?wait_key() 

Now, watch the system monitor. ONE instance is running. Hit any key. Now TWO instances are running! The second is brain dead. That right there ought to be a clue as to what is happening.

I suspect the reason the GtkWindows "hang around" when you use them is that the zombie process doesn't have the ability to tell GTK to clean up and shut down. Zombies aren't very good communicators, according to the TV show...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu