jberger / Mojo-IOLoop-ForkCall

Deprecated! Use Mojo::IOLoop::Subprocess instead
https://mojolicious.org/perldoc/Mojo/IOLoop/Subprocess
5 stars 2 forks source link

Runtime error trying to using the module in strawberry perl (windows xp) #3

Closed dmanto closed 10 years ago

dmanto commented 10 years ago

Hi, I couldn't get child.pl to work on strawberry perl (windows xp) (by child.pl I refer to the example you uploaded a few days ago in github)

C:.....>perl child.pl get /

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

BTW, in linux (ubuntu) same command works perfect, (and also with morbo or hypnotoad and a browser).

DuckDuckGoed a little about this problem, and its like windows stops because the application finishes with an abort() c function.

Anyway Mojo::IOLoop::ForkCall does load ok from CPAN in strawberry perl (5.18.2), so just to investigate a little more about this issue I run some of the tests, for instance big_send.t and of course it passes whith no problems at all. But looking inside all tests there is no "use Mojolicious" or "use Mojolicious::Lite" on the tests, so probably they are not really effective to reproduce this particular problem. (I mean if you just add a renamed "child.t" test it will certainly fail on my windows xp + strawberry setup)

Thanks in advance! Daniel

PS: I can help with the tests if you don't have access to a windows xp setup.

jberger commented 10 years ago

Hello @dmanto,

I'm sorry it has taken me so long to get back to this. I have improved the Windows behavior quite a bit in the last few releases. Can you please confirm if this bug still exists for you and if not please close it? Thanks!

jberger commented 10 years ago

I have asked another windows user to try it out and it seems like it's working. If not please re-open.

dmanto commented 10 years ago

Checked Mojo::IOLoop::ForkCall version 0.08 in my windows xp machine, it's working perfectly.

C...>perl child.pl get /

Hello from child -XXXX after 3 ticks

C....>morbo child.pl

Server available at http://127.0.0.1:3000

And it works just as well from the browser

Don't forget to check your MOJO_REACTOR or set with

C....>set MOJO_REACTOR=Mojo::Reactor::Poll

before run morbo or windows will die

dmanto commented 10 years ago

Hello Joel thanks for your answer, it's working now

BR

2014-06-15 23:10 GMT-03:00 Joel Berger notifications@github.com:

Closed #3 https://github.com/jberger/Mojo-IOLoop-ForkCall/issues/3.

— Reply to this email directly or view it on GitHub https://github.com/jberger/Mojo-IOLoop-ForkCall/issues/3#event-131561500 .