I am trying to get an interactive mode working for my app, to make debugging it easier. I created a "Hilfe" class that inherits Tools.Hilfe.StdinHilfe, and if the app is called with -i, I call add_constant() on this, call Hilfe(), and then return.
But when I start my app with -i, I get the welcome to hilfe message, and then it starts spewing 0 at me forever, I am back at my shell, and I have to kill the pike process to get the 0s to stop.
Adam
you should take a look at this code:
http://hww3.riverweb.com:8080/viewrep/~raw,r=1.22/cvs/Fins/lib/Fins.pmod/Fin...
It's pretty similar, I think I had a similar problem.
Bill
On Thu, 27 Apr 2006, Adam Montague wrote:
I am trying to get an interactive mode working for my app, to make debugging it easier. I created a "Hilfe" class that inherits Tools.Hilfe.StdinHilfe, and if the app is called with -i, I call add_constant() on this, call Hilfe(), and then return.
But when I start my app with -i, I get the welcome to hilfe message, and then it starts spewing 0 at me forever, I am back at my shell, and I have to kill the pike process to get the 0s to stop.
Adam
On Thu, 27 Apr 2006 16:26:42 -0400 (EDT) Bill Welliver hww3@riverweb.com wrote:
you should take a look at this code:
http://hww3.riverweb.com:8080/viewrep/~raw,r=1.22/cvs/Fins/lib/Fins.pmod/Fin...
Yeah, that's pretty much exactly what I am doing.
It's pretty similar, I think I had a similar problem.
Did you work around it somehow? Or maybe it only happens with certain pike versions?
Adam
I haven't had any problems under 7.6.50, and I think 7.6.66. I don't think I'm in the backend when running it, so I'm not sure if that plays a part or not.
Bill
Yeah, that's pretty much exactly what I am doing.
It's pretty similar, I think I had a similar problem.
Did you work around it somehow? Or maybe it only happens with certain pike versions?
Adam
On Thu, 27 Apr 2006 16:22:49 -0400 Adam Montague amontague@siriushosting.com wrote:
I am trying to get an interactive mode working for my app, to make debugging it easier. I created a "Hilfe" class that inherits Tools.Hilfe.StdinHilfe, and if the app is called with -i, I call add_constant() on this, call Hilfe(), and then return.
But when I start my app with -i, I get the welcome to hilfe message, and then it starts spewing 0 at me forever, I am back at my shell, and I have to kill the pike process to get the 0s to stop.
Ok, its just starting my app using another pike script that causes this. If I run "pike myapp -i" everything works fine. Its just if I have a pike script for starting/stopping/reloading/etc my app that uses Process.create_process(({"pike", "myapp", "-i"})) to start my app, then it spews 0s at me.
Adam
pike-devel@lists.lysator.liu.se