@@ -4128,45 +4128,55 @@ used to determine the disposition of a process.
4128
4128
Return ``True `` if a core dump was generated for the process, otherwise
4129
4129
return ``False ``.
4130
4130
4131
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
4132
+
4131
4133
.. availability :: Unix.
4132
4134
4133
4135
4134
4136
.. function :: WIFCONTINUED(status)
4135
4137
4136
- Return ``True `` if the process has been continued from a job control stop,
4137
- otherwise return ``False ``.
4138
+ Return ``True `` if a stopped child has been resumed by delivery of
4139
+ :data: `~signal.SIGCONT ` (if the process has been continued from a job
4140
+ control stop), otherwise return ``False ``.
4141
+
4142
+ See :data: `WCONTINUED ` option.
4138
4143
4139
4144
.. availability :: Unix.
4140
4145
4141
4146
4142
4147
.. function :: WIFSTOPPED(status)
4143
4148
4144
- Return ``True `` if the process has been stopped, otherwise return
4145
- ``False ``.
4149
+ Return ``True `` if the process was stopped by delivery of a signal,
4150
+ otherwise return ``False ``.
4146
4151
4147
- .. availability :: Unix.
4152
+ :func: `WIFSTOPPED ` only returns ``True `` if the :func: `waitpid ` call was
4153
+ done using :data: `WUNTRACED ` option or when the process is being traced (see
4154
+ :manpage: `ptrace(2)`).
4148
4155
4156
+ .. availability :: Unix.
4149
4157
4150
4158
.. function :: WIFSIGNALED(status)
4151
4159
4152
- Return ``True `` if the process exited due to a signal, otherwise return
4160
+ Return ``True `` if the process was terminated by a signal, otherwise return
4153
4161
``False ``.
4154
4162
4155
4163
.. availability :: Unix.
4156
4164
4157
4165
4158
4166
.. function :: WIFEXITED(status)
4159
4167
4160
- Return ``True `` if the process exited using the :manpage: `exit(2)` system call,
4168
+ Return ``True `` if the process exited terminated normally, that is,
4169
+ by calling ``exit() `` or ``_exit() ``, or by returning from ``main() ``;
4161
4170
otherwise return ``False ``.
4162
4171
4163
4172
.. availability :: Unix.
4164
4173
4165
4174
4166
4175
.. function :: WEXITSTATUS(status)
4167
4176
4168
- If ``WIFEXITED(status) `` is true, return the integer parameter to the
4169
- :manpage: `exit(2)` system call. Otherwise, the return value is meaningless.
4177
+ Return the process exit status.
4178
+
4179
+ This function should be employed only if :func: `WIFEXITED ` is true.
4170
4180
4171
4181
.. availability :: Unix.
4172
4182
@@ -4175,12 +4185,16 @@ used to determine the disposition of a process.
4175
4185
4176
4186
Return the signal which caused the process to stop.
4177
4187
4188
+ This function should be employed only if :func: `WIFSTOPPED ` is true.
4189
+
4178
4190
.. availability :: Unix.
4179
4191
4180
4192
4181
4193
.. function :: WTERMSIG(status)
4182
4194
4183
- Return the signal which caused the process to exit.
4195
+ Return the number of the signal that caused the process to terminate.
4196
+
4197
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
4184
4198
4185
4199
.. availability :: Unix.
4186
4200
0 commit comments