| 216 | | /*********************************************************************** |
| 217 | | * |
| 218 | | * FUNCTION: SysWaitForProcessFinish |
| 219 | | * |
| 220 | | * DESCRIPTION: Waits on a certain process exiting. |
| 221 | | * |
| 222 | | * PARAMETERS: pid - the process id to wait on. |
| 223 | | * |
| 224 | | * RETURNS: 0 if success, -ETIMEOUT if wait timed out. |
| 225 | | * |
| 226 | | ***********************************************************************/ |
| 227 | | |
| 228 | | /* In future, add time to timeout */ |
| 229 | | |
| 230 | | int SysWaitForProcessFinish(int pid,int* finishStatus) |
| | 216 | int ThrWaitForProcessFinish(int pid, int* finishStatus) |
| | 260 | * FUNCTION: SysWaitForProcessFinish |
| | 261 | * |
| | 262 | * DESCRIPTION: Waits on a certain process exiting. |
| | 263 | * |
| | 264 | * PARAMETERS: pid - the process id to wait on. |
| | 265 | * |
| | 266 | * RETURNS: 0 if success, -ETIMEOUT if wait timed out. |
| | 267 | * |
| | 268 | ***********************************************************************/ |
| | 269 | |
| | 270 | /* In future, add time to timeout */ |
| | 271 | |
| | 272 | int SysWaitForProcessFinish(int pid,int* finishStatus) |
| | 273 | { |
| | 274 | if (finishStatus) |
| | 275 | if (VirtCheckArea(finishStatus,sizeof(int),VER_WRITE)) |
| | 276 | return -EFAULT; |
| | 277 | |
| | 278 | return ThrWaitForProcessFinish(pid, finishStatus); |
| | 279 | } |
| | 280 | |
| | 281 | /*********************************************************************** |
| | 282 | * |