Skip to content

Commit 007c0b6

Browse files
authored
Merge pull request #37 from simosund/pping_graceful_shutdown
pping: Add graceful shutdown on SIGTERM
2 parents e1b18d7 + de5d650 commit 007c0b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pping/pping.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ int main(int argc, char *argv[])
10241024

10251025
// Allow program to perform cleanup on Ctrl-C
10261026
signal(SIGINT, abort_program);
1027+
signal(SIGTERM, abort_program);
10271028

10281029
// Main loop
10291030
while (keep_running) {

0 commit comments

Comments
 (0)