Re: Stopping phix
- Posted by irv Jan 02, 2021
- 1682 views
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...