I guess found a way to avoid core file modification.

sub startup {
..
open(my $handle, "<&=3");
close $handle;

Looks like opening and closing the socket file descriptor restores its 
ability to be closed in child processes.
So I may continue my Mojo adventure :)


On Wednesday, 13 February 2019 20:21:16 UTC+1, Wes wrote:
>
> There is 
>
> # Allow file descriptor inheritance
> local $^F = 1023;
>
> in Mojo/IOLoop/Server.pm that causes the behavior.
> Commenting it out restores expected behavior ($^F=2) 
> but such a modification of core file makes Mojo unsuitable for my project 
> or I guess any project that spawns server/daemon type subprocesses.
>
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to