Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Can I use Mojo::IOLoop::Subprocess for a non-blocking process?

by talexb (Canon)
on Mar 31, 2019 at 19:04 UTC ( #1231928=note: print w/replies, xml ) Need Help??


in reply to Re^3: Can I use Mojo::IOLoop::Subprocess for a non-blocking process?
in thread Can I use Mojo::IOLoop::Subprocess for a non-blocking process?

In my quest to make my self-contained example as brief as possible, I neglected to point out that the $row variable comes from an array under source control, and not from user input. All the user can do is press a button. (Yes, technically they could edit the page and make up their own button value, but if that value isn't in the array, nothing is executed.)

An earlier version of my code did use fork/exec, but it didn't work as expected under Mojolicious (Mojo waited for the child to finish), so I moved on to other approaches.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1231928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2019-07-24 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?