Rev 4544 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4544 | Rev 4617 | ||
---|---|---|---|
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 | int retval; |
|
- | 77 | ||
76 | if (argc < 3) { |
78 | if (argc < 3) { |
77 | usage(); |
79 | usage(); |
78 | return -1; |
80 | return -1; |
79 | } |
81 | } |
80 | 82 | ||
Line 95... | Line 97... | ||
95 | || (stderr == NULL)) |
97 | || (stderr == NULL)) |
96 | return -2; |
98 | return -2; |
97 | 99 | ||
98 | version_print(argv[1]); |
100 | version_print(argv[1]); |
99 | task_id_t id = spawn(argv[2]); |
101 | task_id_t id = spawn(argv[2]); |
100 | task_wait(id); |
102 | task_wait(id, &retval); |
101 | 103 | ||
102 | return 0; |
104 | return 0; |
103 | } |
105 | } |
104 | 106 | ||
105 | /** @} |
107 | /** @} |