Rev 3203 | Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3203 | Rev 3216 | ||
---|---|---|---|
Line 126... | Line 126... | ||
126 | { |
126 | { |
127 | int phone_id; |
127 | int phone_id; |
128 | ipc_call_t answer; |
128 | ipc_call_t answer; |
129 | aid_t req; |
129 | aid_t req; |
130 | int rc; |
130 | int rc; |
- | 131 | ipcarg_t retval; |
|
131 | 132 | ||
132 | /* Spawn a program loader */ |
133 | /* Spawn a program loader */ |
133 | phone_id = task_spawn_loader(); |
134 | phone_id = task_spawn_loader(); |
134 | if (phone_id < 0) return 0; |
135 | if (phone_id < 0) return 0; |
135 | 136 | ||
Line 146... | Line 147... | ||
146 | if (rc != EOK) { |
147 | if (rc != EOK) { |
147 | async_wait_for(req, NULL); |
148 | async_wait_for(req, NULL); |
148 | return 1; |
149 | return 1; |
149 | } |
150 | } |
150 | 151 | ||
151 | async_wait_for(req, &rc); |
152 | async_wait_for(req, &retval); |
152 | if (rc != EOK) goto error; |
153 | if (retval != EOK) goto error; |
153 | 154 | ||
154 | /* Send arguments */ |
155 | /* Send arguments */ |
155 | rc = loader_set_args(phone_id, argv); |
156 | rc = loader_set_args(phone_id, argv); |
156 | if (rc != EOK) goto error; |
157 | if (rc != EOK) goto error; |
157 | 158 |