@@ -4167,45 +4167,55 @@ used to determine the disposition of a process.
4167
4167
Return ``True `` if a core dump was generated for the process, otherwise
4168
4168
return ``False ``.
4169
4169
4170
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
4171
+
4170
4172
.. availability :: Unix.
4171
4173
4172
4174
4173
4175
.. function :: WIFCONTINUED(status)
4174
4176
4175
- Return ``True `` if the process has been continued from a job control stop,
4176
- otherwise return ``False ``.
4177
+ Return ``True `` if a stopped child has been resumed by delivery of
4178
+ :data: `~signal.SIGCONT ` (if the process has been continued from a job
4179
+ control stop), otherwise return ``False ``.
4180
+
4181
+ See :data: `WCONTINUED ` option.
4177
4182
4178
4183
.. availability :: Unix.
4179
4184
4180
4185
4181
4186
.. function :: WIFSTOPPED(status)
4182
4187
4183
- Return ``True `` if the process has been stopped, otherwise return
4184
- ``False ``.
4188
+ Return ``True `` if the process was stopped by delivery of a signal,
4189
+ otherwise return ``False ``.
4185
4190
4186
- .. availability :: Unix.
4191
+ :func: `WIFSTOPPED ` only returns ``True `` if the :func: `waitpid ` call was
4192
+ done using :data: `WUNTRACED ` option or when the process is being traced (see
4193
+ :manpage: `ptrace(2)`).
4187
4194
4195
+ .. availability :: Unix.
4188
4196
4189
4197
.. function :: WIFSIGNALED(status)
4190
4198
4191
- Return ``True `` if the process exited due to a signal, otherwise return
4199
+ Return ``True `` if the process was terminated by a signal, otherwise return
4192
4200
``False ``.
4193
4201
4194
4202
.. availability :: Unix.
4195
4203
4196
4204
4197
4205
.. function :: WIFEXITED(status)
4198
4206
4199
- Return ``True `` if the process exited using the :manpage: `exit(2)` system call,
4207
+ Return ``True `` if the process exited terminated normally, that is,
4208
+ by calling ``exit() `` or ``_exit() ``, or by returning from ``main() ``;
4200
4209
otherwise return ``False ``.
4201
4210
4202
4211
.. availability :: Unix.
4203
4212
4204
4213
4205
4214
.. function :: WEXITSTATUS(status)
4206
4215
4207
- If ``WIFEXITED(status) `` is true, return the integer parameter to the
4208
- :manpage: `exit(2)` system call. Otherwise, the return value is meaningless.
4216
+ Return the process exit status.
4217
+
4218
+ This function should be employed only if :func: `WIFEXITED ` is true.
4209
4219
4210
4220
.. availability :: Unix.
4211
4221
@@ -4214,12 +4224,16 @@ used to determine the disposition of a process.
4214
4224
4215
4225
Return the signal which caused the process to stop.
4216
4226
4227
+ This function should be employed only if :func: `WIFSTOPPED ` is true.
4228
+
4217
4229
.. availability :: Unix.
4218
4230
4219
4231
4220
4232
.. function :: WTERMSIG(status)
4221
4233
4222
- Return the signal which caused the process to exit.
4234
+ Return the number of the signal that caused the process to terminate.
4235
+
4236
+ This function should be employed only if :func: `WIFSIGNALED ` is true.
4223
4237
4224
4238
.. availability :: Unix.
4225
4239
0 commit comments