diff options
author | rodri <rgl@antares-labs.eu> | 2021-01-13 21:08:46 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-01-13 21:08:46 +0000 |
commit | 2ba0c4f7520d37840308ccbda4841a99700fe11a (patch) | |
tree | 7c04364b9fef92f378044449b7bf2d3a3563f779 | |
parent | af5cae0b1a9a788e98be769d9a32896f6ebfa14c (diff) | |
download | filmoteca-2ba0c4f7520d37840308ccbda4841a99700fe11a.tar.gz filmoteca-2ba0c4f7520d37840308ccbda4841a99700fe11a.tar.bz2 filmoteca-2ba0c4f7520d37840308ccbda4841a99700fe11a.zip |
avoid giving birth to zombies.
-rw-r--r-- | filmoteca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filmoteca.c b/filmoteca.c index 904146a..7e928b5 100644 --- a/filmoteca.c +++ b/filmoteca.c @@ -13,6 +13,7 @@ #include <ctype.h> #include <errno.h> #include <pwd.h> +#include <signal.h> #include <pthread.h> #include <utf.h> #include <fmt.h> @@ -1011,6 +1012,7 @@ tmain(void *a) srvfilms(); exit(0); default: + signal(SIGCHLD, SIG_IGN); //wait(nil); /* FALLTHROUGH */ case -1: |