Changeset a35b458 in mainline for uspace/lib/posix/src/sys/wait.c
- Timestamp:
- 2018-03-02T20:10:49Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/sys/wait.c
r3061bc1 ra35b458 95 95 assert(stat_ptr != NULL); 96 96 assert(options == 0 /* None of the options are supported. */); 97 97 98 98 task_exit_t texit; 99 99 int retval; 100 100 101 101 if (failed(task_wait_task_id((task_id_t) pid, &texit, &retval))) { 102 102 /* Unable to retrieve status. */ 103 103 return (pid_t) -1; 104 104 } 105 105 106 106 if (texit == TASK_EXIT_NORMAL) { 107 107 // FIXME: relies on application not returning this value … … 112 112 *stat_ptr = INT_MIN; 113 113 } 114 114 115 115 return pid; 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.