diff options
-rw-r--r-- | bin/nfcollect.c | 5 | ||||
-rw-r--r-- | bin/nfextract.c | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/bin/nfcollect.c b/bin/nfcollect.c index 527ac24..3afd05c 100644 --- a/bin/nfcollect.c +++ b/bin/nfcollect.c @@ -50,9 +50,8 @@ const char *help_text = "\n"; void sig_handler(int signo) { - if (signo == SIGHUP) { - /* TODO */ - } + if (signo == SIGHUP) + puts("Terminated due to SIGHUP ..."); } int main(int argc, char *argv[]) { diff --git a/bin/nfextract.c b/bin/nfextract.c index 8d8ef2e..d7fc9ae 100644 --- a/bin/nfextract.c +++ b/bin/nfextract.c @@ -50,10 +50,9 @@ const char *help_text = " -v --version print version information\n" "\n"; -static void sig_handler(int signo) { - if (signo == SIGHUP) { - /* TODO */ - } +void sig_handler(int signo) { + if (signo == SIGHUP) + puts("Terminated due to SIGHUP ..."); } static void extract_each(const char *storage_dir, const char *filename) { |