Re: Stopping phix
- Posted by irv Jan 02, 2021
- 1727 views
To eliminate the possibility that GTK or my code is causing the problem, we eliminate both:
puts(1,"Hello\n") system("ps -U irv axjf | grep hello",0)
irv@irv-Mint19:~/pgtk$ eui hello Hello 7209 7234 7234 7209 pts/1 7234 S+ 1000 0:00 \_ eui hello 7234 7235 7234 7209 pts/1 7234 S+ 1000 0:00 \_ sh -c ps -U irv axjf | grep hello 7235 7237 7234 7209 pts/1 7234 S+ 1000 0:00 \_ grep hello irv@irv-Mint19:~/pgtk$
irv@irv-Mint19:~/pgtk$ p hello Hello 7209 7239 7239 7209 pts/1 7239 S+ 1000 0:00 \_ p hello 7239 7240 7239 7209 pts/1 7239 S+ 1000 0:00 \_ p hello 7240 7241 7239 7209 pts/1 7239 S+ 1000 0:00 \_ sh -c ps -U irv axjf | grep hello 7241 7243 7239 7209 pts/1 7239 S+ 1000 0:00 \_ grep hello irv@irv-Mint19:~/pgtk$
Note the difference.
I think it is safe to say that the problem is caused when one of those 2 instances of 'p' dies but just won't go away.