Skip to content

Commit

Permalink
Optimize the description of Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed May 22, 2024
1 parent bda9d18 commit e33d4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfcs/0050-vm-syscalls-3/0050-vm-syscalls-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ It's not always necessary to manually close file descriptors. When a process is
### Wait
[Wait]: #wait

The syscall pauses until the execution of a process specified by `pid` has ended. Retrieve the exit code of the process through the `exit_code` parameter. If the process has already terminated when Wait is called, or you pass in the wrong Process ID, the method returns immediately with error(5), and the value saved in the `exit_code` will not be updated.
The syscall pauses until the execution of a process specified by `pid` has ended. Retrieve the exit code of the process through the `exit_code` parameter. If a process is waited repeatedly, or you pass in the wrong Process ID, the method returns immediately with error(5), and the value saved in the `exit_code` will not be updated.

```c
int ckb_wait(uint64_t pid, int8_t* exit_code);
Expand Down

0 comments on commit e33d4b0

Please sign in to comment.