Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3446 → Rev 3447

/trunk/uspace/lib/libc/generic/task.c
133,6 → 133,7
 
char *pa;
size_t pa_len;
task_id_t task_id;
 
pa = absolutize(path, &pa_len);
if (!pa)
151,6 → 152,18
if (rc != EOK)
return 0;
 
/* Get task ID. */
req = async_send_0(phone_id, LOADER_GET_TASKID, &answer);
rc = ipc_data_read_start(phone_id, &task_id, sizeof(task_id));
if (rc != EOK) {
async_wait_for(req, NULL);
goto error;
}
 
async_wait_for(req, &retval);
if (retval != EOK)
goto error;
 
/* Send program pathname */
req = async_send_0(phone_id, LOADER_SET_PATHNAME, &answer);
rc = ipc_data_write_start(phone_id, (void *)pa, pa_len);
175,7 → 188,7
 
/* Success */
ipc_hangup(phone_id);
return 1;
return task_id;
 
/* Error exit */
error: