Skip to content

Commit

Permalink
Fix: Don't (incorrectly) rewrite C into default stop action
Browse files Browse the repository at this point in the history
Rewriting the ^C into a default stop action causes docker to run the default stop action.
It will run whatever is specified by STOPSIGNAL, or SIGTERM by default.

This change allows wings to received the full data and issue the correct signal.
  • Loading branch information
danny6167 committed Jun 26, 2024
1 parent c865640 commit 2520f80
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/Services/Eggs/EggConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ protected function convertStopToNewFormat(string $stop): array
}

$signal = substr($stop, 1);
if (strtoupper($signal) === 'C') {
return [
'type' => 'stop',
'value' => null,
];
}

return [
'type' => 'signal',
'value' => strtoupper($signal),
Expand Down

0 comments on commit 2520f80

Please sign in to comment.