On 18/12/2010 20:40, sebastian de castelberg wrote:
I am still in debug mode, but does anybody had any problem with open3 when running the standalone server?
It seems that STDOUT is getting linked somehow to the terminal window where app.pl is being run.
For those wanting to help me debug, here is a teste case:
http://paste.perldancer.org/1oRJn4LgYzcfV
Not sure if this is open3 fault, or Plack/Dancer that is changing something it shouldn't...
Seems an open3 bug: http://rt.perl.org/rt3/Ticket/Display.html?id=66224
Save and reset STDOUT is a workaround. http://paste.perldancer.org/EZUg9A5NVEv5
Hmms, thanks. Now the script is crashing a little ahead with a broken pipe when writing to that filehandle... Let see if I can debug it... Thanks, again :) Alberto