@@ -3765,45 +3765,55 @@ used to determine the disposition of a process.
3765
3765
Return ``True `` if a core dump was generated for the process, otherwise
3766
3766
return ``False ``.
3767
3767
3768
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
3769
+
3768
3770
.. availability :: Unix.
3769
3771
3770
3772
3771
3773
.. function :: WIFCONTINUED(status)
3772
3774
3773
- Return ``True `` if the process has been continued from a job control stop,
3774
- otherwise return ``False ``.
3775
+ Return ``True `` if a stopped child has been resumed by delivery of
3776
+ :data: `~signal.SIGCONT ` (if the process has been continued from a job
3777
+ control stop), otherwise return ``False ``.
3778
+
3779
+ See :data: `WCONTINUED ` option.
3775
3780
3776
3781
.. availability :: Unix.
3777
3782
3778
3783
3779
3784
.. function :: WIFSTOPPED(status)
3780
3785
3781
- Return ``True `` if the process has been stopped, otherwise return
3782
- ``False ``.
3786
+ Return ``True `` if the process was stopped by delivery of a signal,
3787
+ otherwise return ``False ``.
3783
3788
3784
- .. availability :: Unix.
3789
+ :func: `WIFSTOPPED ` only returns ``True `` if the :func: `waitpid ` call was
3790
+ done using :data: `WUNTRACED ` option or when the process is being traced (see
3791
+ :manpage: `ptrace(2)`).
3785
3792
3793
+ .. availability :: Unix.
3786
3794
3787
3795
.. function :: WIFSIGNALED(status)
3788
3796
3789
- Return ``True `` if the process exited due to a signal, otherwise return
3797
+ Return ``True `` if the process was terminated by a signal, otherwise return
3790
3798
``False ``.
3791
3799
3792
3800
.. availability :: Unix.
3793
3801
3794
3802
3795
3803
.. function :: WIFEXITED(status)
3796
3804
3797
- Return ``True `` if the process exited using the :manpage: `exit(2)` system call,
3805
+ Return ``True `` if the process exited terminated normally, that is,
3806
+ by calling ``exit() `` or ``_exit() ``, or by returning from ``main() ``;
3798
3807
otherwise return ``False ``.
3799
3808
3800
3809
.. availability :: Unix.
3801
3810
3802
3811
3803
3812
.. function :: WEXITSTATUS(status)
3804
3813
3805
- If ``WIFEXITED(status) `` is true, return the integer parameter to the
3806
- :manpage: `exit(2)` system call. Otherwise, the return value is meaningless.
3814
+ Return the process exit status.
3815
+
3816
+ This function should be employed only if :func: `WIFEXITED ` is true.
3807
3817
3808
3818
.. availability :: Unix.
3809
3819
@@ -3812,12 +3822,16 @@ used to determine the disposition of a process.
3812
3822
3813
3823
Return the signal which caused the process to stop.
3814
3824
3825
+ This function should be employed only if :func: `WIFSTOPPED ` is true.
3826
+
3815
3827
.. availability :: Unix.
3816
3828
3817
3829
3818
3830
.. function :: WTERMSIG(status)
3819
3831
3820
- Return the signal which caused the process to exit.
3832
+ Return the number of the signal that caused the process to terminate.
3833
+
3834
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
3821
3835
3822
3836
.. availability :: Unix.
3823
3837
0 commit comments