ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 6ea072a27525d29417b72e50370fd9b21f28a619
parent eaabae67b8dcb1a3aa9fb2b7c8ed6d85e13a1c21
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu, 20 May 2021 02:58:42 -0700

Catch SIGTERM

Diffstat:
Maps.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/aps.c b/aps.c @@ -51,7 +51,7 @@ die(char *s) } void -sigint(int sig) +sigclose(int sig) { aps.close = 1; } @@ -178,8 +178,9 @@ main(int argc, char *argv[]) die("pledge"); #endif - signal(SIGINT, sigint); signal(SIGCHLD, sigchld); + signal(SIGINT, sigclose); + signal(SIGTERM, sigclose); for (i = 0; player[i]; ++i) if (!player[i][0])