diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-04-14 19:35:12 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-04-14 19:35:12 +0200 |
commit | b56ec68a91bda3914304b39ced9a4d5a2ca76360 (patch) | |
tree | 19654419cd317475b7422913cf3257bcab9f6c2a /tests | |
parent | dab18c4eb78ebb591e669ca35265e4408cae2991 (diff) |
test_output: remove signal handler
It will be replaced by the event loop signal handler.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_output.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test_output.c b/tests/test_output.c index 147563c..8bd3358 100644 --- a/tests/test_output.c +++ b/tests/test_output.c @@ -42,7 +42,6 @@ #include <errno.h> #include <GL/gl.h> #include <inttypes.h> -#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -62,10 +61,6 @@ float d_col[] = { 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1 }; -static void sig_term(int signum) -{ -} - static int set_outputs(struct uterm_video *video, int num, char **list) { struct uterm_display *iter; @@ -191,7 +186,6 @@ int main(int argc, char **argv) struct uterm_video *video; int ret; struct ev_eloop *eloop; - struct sigaction sig; log_print_init("test_output"); log_set_config(&LOG_CONFIG_INFO(1, 1)); @@ -200,11 +194,6 @@ int main(int argc, char **argv) if (ret) return EXIT_FAILURE; - memset(&sig, 0, sizeof(sig)); - sig.sa_handler = sig_term; - sigaction(SIGTERM, &sig, NULL); - sigaction(SIGINT, &sig, NULL); - log_notice("Creating video object..."); ret = uterm_video_new(&video, UTERM_VIDEO_DRM, eloop); if (ret) { |