Skip to content

Commit

Permalink
fix: osh.pl: propagate signals to plugins before exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Oct 14, 2024
1 parent 4196a5b commit db381bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/shell/osh.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,9 @@ sub exit_sig {
signal => $sig,
);
}
# ensure the signal is propagated to our progress group, then exit
$SIG{$sig} = 'IGNORE';
kill $sig, 0;
exit OVH::Bastion::EXIT_OK;
}

Expand Down

0 comments on commit db381bd

Please sign in to comment.