diff options
Diffstat (limited to 'man2/wait.2')
| -rw-r--r-- | man2/wait.2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man2/wait.2 b/man2/wait.2 index ebc4ba2c43..77946613d2 100644 --- a/man2/wait.2 +++ b/man2/wait.2 @@ -516,11 +516,11 @@ The following shell session demonstrates the use of the program: $ ./a.out & Child PID is 32360 [1] 32359 -$ kill -STOP 32360 +$ kill \-STOP 32360 stopped by signal 19 -$ kill -CONT 32360 +$ kill \-CONT 32360 continued -$ kill -TERM 32360 +$ kill \-TERM 32360 killed by signal 15 [1]+ Done ./a.out $ @@ -537,7 +537,7 @@ main(int argc, char *argv[]) int status; cpid = fork(); - if (cpid == -1) { + if (cpid == \-1) { perror("fork"); exit(EXIT_FAILURE); } @@ -551,7 +551,7 @@ main(int argc, char *argv[]) } else { /* Code executed by parent */ do { w = waitpid(cpid, &status, WUNTRACED | WCONTINUED); - if (w == -1) { + if (w == \-1) { perror("waitpid"); exit(EXIT_FAILURE); } |
