Skip to content

Commit

Permalink
exec in INIT block
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Jun 18, 2023
1 parent 1fbd5a6 commit e1aeec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/pureproxy.pl
Expand Up @@ -20,8 +20,9 @@ BEGIN
}
}

BEGIN {
INIT {
if ($^O eq 'darwin' && $ENV{OBJC_DISABLE_INITIALIZE_FORK_SAFETY} ne 'YES') {
warn @ARGV;
$ENV{OBJC_DISABLE_INITIALIZE_FORK_SAFETY} = 'YES';
exec $0, @ARGV;
}
Expand Down

0 comments on commit e1aeec6

Please sign in to comment.