aboutsummaryrefslogtreecommitdiffstats
path: root/timeout.c
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-09-18 12:23:43 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-09-18 12:23:43 -0400
commit957ad72229186c5d21e44366f61d58a4dfa89bfe (patch)
tree2284b3f2f4c1ed7c81ba0ccda720997fab4dab85 /timeout.c
parent5760b6ad37c794a0dd5312206184d0b8ae8e8eda (diff)
Change liblitmus to have a more sane repository layout.
Diffstat (limited to 'timeout.c')
-rw-r--r--timeout.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/timeout.c b/timeout.c
deleted file mode 100644
index ba513f9..0000000
--- a/timeout.c
+++ /dev/null
@@ -1,36 +0,0 @@
1#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4
5#include "litmus.h"
6
7int main(int argc, char** argv)
8{
9 int timeout;
10 rt_param_t my_param;
11
12 if (argc != 2)
13 {
14 printf("Usage: %s <timeout in seconds>\n", argv[0]);
15 exit(1);
16 }
17 timeout = atoi(argv[1]);
18 if (timeout <= 0) {
19 printf("Timeout must be a positive number.\n");
20 exit(1);
21 }
22
23 /* printf("This is the kill real-time mode task.\n"
24 "Expected end of real %u seconds.\n", timeout);
25 */
26 /* get_rt_task_param(getpid(), &my_param);
27 show_rt_param(&my_param);
28 */
29
30 sleep(timeout);
31
32
33 set_rt_mode(MODE_NON_RT);
34 printf("End of real-time mode.\n");
35 return 0;
36}