Rev 4581 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4581 | Rev 4718 | ||
---|---|---|---|
Line 71... | Line 71... | ||
71 | return id; |
71 | return id; |
72 | } |
72 | } |
73 | 73 | ||
74 | int main(int argc, char *argv[]) |
74 | int main(int argc, char *argv[]) |
75 | { |
75 | { |
- | 76 | task_exit_t texit; |
|
- | 77 | int retval; |
|
- | 78 | ||
76 | if (argc < 3) { |
79 | if (argc < 3) { |
77 | usage(); |
80 | usage(); |
78 | return -1; |
81 | return -1; |
79 | } |
82 | } |
80 | 83 | ||
Line 95... | Line 98... | ||
95 | || (stderr == NULL)) |
98 | || (stderr == NULL)) |
96 | return -2; |
99 | return -2; |
97 | 100 | ||
98 | version_print(argv[1]); |
101 | version_print(argv[1]); |
99 | task_id_t id = spawn(argv[2]); |
102 | task_id_t id = spawn(argv[2]); |
100 | task_wait(id); |
103 | task_wait(id, &texit, &retval); |
101 | 104 | ||
102 | return 0; |
105 | return 0; |
103 | } |
106 | } |
104 | 107 | ||
105 | /** @} |
108 | /** @} |