Skip to content

Commit

Permalink
owut: exit immediately on ctrl-c
Browse files Browse the repository at this point in the history
If the user attempted to abort processing during a build, owut
would terminate a subprocess in many cases and then continue with
top-level processing.  We now simply exit the top-level when a user
interrupt signal is detected.

Signed-off-by: Eric Fahlgren <[email protected]>
  • Loading branch information
efahl committed Jan 25, 2025
1 parent a95d383 commit 2bf45d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/owut
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,8 @@ initialize_urls();
let updates;
let exit_status = EXIT_ERR; // Assume failure, until we know otherwise.

signal("SIGINT", exit); // Ensure ctrl-C works when inside build loop.

switch (options.command) {
case "versions":
collect_overview();
Expand Down

0 comments on commit 2bf45d5

Please sign in to comment.