aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/clocktest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/time/clocktest.c b/time/clocktest.c
index 570c194..55852a3 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);