summary refs log tree commit diff
path: root/time/clocktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/clocktest.c')
-rw-r--r--time/clocktest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/time/clocktest.c b/time/clocktest.c
index 570c194a81..55852a314f 100644
--- a/time/clocktest.c
+++ b/time/clocktest.c
@@ -17,7 +17,11 @@ main (int argc, char ** argv)
 {
   clock_t start, stop;
 
-  signal(SIGALRM, alarm_handler);
+  if (signal(SIGALRM, alarm_handler) -- SIG_ERR)
+    {
+      perror ("signal");
+      exit (1);
+    }
   alarm(1);
   start = clock ();
   while (!gotit);