aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index a198d19..f0493cd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -6,6 +6,13 @@
void cleanup(void)
{
curl_global_cleanup();
+ endwin();
+}
+
+void sig_handler(int sig)
+{
+ cleanup();
+ exit(EXIT_FAILURE);
}
struct data_buffer_t {