Skip to content

Commit

Permalink
simply call Socket::inet_aton before fork(2) (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji authored Apr 28, 2024
1 parent 13699b3 commit 923bf2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/App/cpm/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,8 @@ sub install {
&& !exists $ENV{OBJC_DISABLE_INITIALIZE_FORK_SAFETY}
&& !$self->{_darwin_fixed}
) {
my $lib = "/System/Library/Frameworks/Foundation.framework/Foundation";
$master->{logger}->log("dlopen $lib to initialize Objective-C APIs before fork(2)");
require DynaLoader;
DynaLoader::dl_load_file $lib;
require Socket;
Socket::inet_aton("call-inet_aton-before_fork");
$self->{_darwin_fixed} = 1;
}

Expand Down

0 comments on commit 923bf2b

Please sign in to comment.