Browse Source

final fix of testalarm.

This now does what it should, periodically prints a message.

It's supposed to be 5 seconds but seems fast.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 9 years ago
parent
commit
c9fcd09bbb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      sys/src/cmd/testalarm.c

+ 2 - 1
sys/src/cmd/testalarm.c

@@ -14,6 +14,7 @@ static int
 catch(void *p, char *s)
 {
 	print("catch %p %s\n", p, s);
+	alarm(5000);
 	noted(NCONT);
 }
 
@@ -22,7 +23,7 @@ main(int argc, char *argv[])
 {
 	notify(catch);
 
-	alarm(5);
+	alarm(5000);
 	while (1)
 		;
 	exits(0);