Changeset 0d0b319 in mainline for uspace/lib/posix/source/sys/wait.c
- Timestamp:
- 2018-01-04T20:03:02Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c7702c0
- Parents:
- 10de842
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:03:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/wait.c
r10de842 r0d0b319 42 42 #include "libc/task.h" 43 43 #include "posix/assert.h" 44 #include "posix/errno.h" 44 45 #include <errno.h> 46 45 47 #include "posix/limits.h" 46 48 #include "posix/signal.h" … … 100 102 int retval; 101 103 102 int rc = task_wait_task_id((task_id_t) pid, &texit, &retval); 103 104 if (rc < 0) { 104 if (failed(task_wait_task_id((task_id_t) pid, &texit, &retval))) { 105 105 /* Unable to retrieve status. */ 106 errno = -rc;107 106 return (posix_pid_t) -1; 108 107 }
Note:
See TracChangeset
for help on using the changeset viewer.