diff options
author | Robert Morris <[email protected]> | 2019-08-02 13:25:57 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-08-02 13:25:57 -0400 |
commit | e788af9b81300b108a7d1705e23f73167ea71c67 (patch) | |
tree | 3587e349b6232ee7f2a4a7c4f7ddd69abd99786c | |
parent | 0b5c01d429d9f4927fa5acb46c32c9c2be948e76 (diff) | |
download | xv6-labs-e788af9b81300b108a7d1705e23f73167ea71c67.tar.gz xv6-labs-e788af9b81300b108a7d1705e23f73167ea71c67.tar.bz2 xv6-labs-e788af9b81300b108a7d1705e23f73167ea71c67.zip |
oops, back to alarm()
-rw-r--r-- | labs/syscall.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/labs/syscall.html b/labs/syscall.html index 9a24a7c..67f800e 100644 --- a/labs/syscall.html +++ b/labs/syscall.html @@ -143,12 +143,12 @@ void test0() { int i; printf(1, "test0 start\n"); - sigalarm(2, periodic); + alarm(2, periodic); for(i = 0; i < 1000*500000; i++){ if((i % 250000) == 0) write(2, ".", 1); } - sigalarm(0, 0); + alarm(0, 0); printf(1, "test0 done\n"); } @@ -171,7 +171,7 @@ void test1() { printf(1, "test1 start\n"); j = 0; - sigalarm(2, periodic); + alarm(2, periodic); for(i = 0; i < 1000*500000; i++){ foo(i, &j); } |