Skip to content

Commit

Permalink
Since post4 catches SIGTERM, set the exit code to the same value
Browse files Browse the repository at this point in the history
the shell would use, ie. 128 + signal.
  • Loading branch information
SirWumpus committed Aug 15, 2024
1 parent 960bc20 commit 8b90e24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/post4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,7 @@ p4Repl(P4_Ctx *ctx)
/* Historically no message, simply return to REPL. */
break;
case P4_THROW_TERMINATE:
rc = 128 + SIGTERM;
(void) printf(crlf);
goto setjmp_cleanup;
default:
Expand Down

0 comments on commit 8b90e24

Please sign in to comment.