Lines Matching defs:status
597 PyStatus status;
600 status = _PyGILState_Reinit(runtime);
601 if (_PyStatus_EXCEPTION(status)) {
612 status = _PyEval_ReInitThreads(tstate);
613 if (_PyStatus_EXCEPTION(status)) {
617 status = _PyImport_ReInitLock();
618 if (_PyStatus_EXCEPTION(status)) {
624 status = _PyRuntimeState_ReInitThreads(runtime);
625 if (_PyStatus_EXCEPTION(status)) {
629 status = _PyInterpreterState_DeleteExceptMain(runtime);
630 if (_PyStatus_EXCEPTION(status)) {
639 Py_ExitStatusException(status);
5671 status: int
5673 Exit to the system with specified status, without normal exit processing.
5677 os__exit_impl(PyObject *module, int status)
5680 _exit(status);
6494 int status;
6511 res = waitpid((pid_t)rtpid, &status, 0);
6516 return ((intptr_t)status);
8361 wait_helper(PyObject *module, pid_t pid, int status, struct rusage *ru)
8369 // If wait succeeded but no child was ready to report status, ru will not
8420 return Py_BuildValue("NiN", PyLong_FromPid(pid), status, result);
8433 (pid, status, rusage)
8443 WAIT_TYPE status;
8444 WAIT_STATUS_INT(status) = 0;
8448 pid = wait3(&status, options, &ru);
8454 return wait_helper(module, pid, WAIT_STATUS_INT(status), &ru);
8470 (pid, status, rusage)
8480 WAIT_TYPE status;
8481 WAIT_STATUS_INT(status) = 0;
8485 res = wait4(pid, &status, options, &ru);
8491 return wait_helper(module, res, WAIT_STATUS_INT(status), &ru);
8566 (pid, status)
8577 WAIT_TYPE status;
8578 WAIT_STATUS_INT(status) = 0;
8582 res = waitpid(pid, &status, options);
8588 return Py_BuildValue("Ni", PyLong_FromPid(res), WAIT_STATUS_INT(status));
8601 (pid, status << 8)
8610 int status;
8617 res = _cwait(&status, pid, options);
8624 unsigned long long ustatus = (unsigned int)status;
8626 /* shift the status left a byte so this is more like the POSIX waitpid */
8639 (pid, status)
8648 WAIT_TYPE status;
8649 WAIT_STATUS_INT(status) = 0;
8653 pid = wait(&status);
8659 return Py_BuildValue("Ni", PyLong_FromPid(pid), WAIT_STATUS_INT(status));
11247 status: int
11250 Return True if the process returning status was dumped to a core file.
11254 os_WCOREDUMP_impl(PyObject *module, int status)
11258 WAIT_STATUS_INT(wait_status) = status;
11268 status: int
11272 Return True if the process returning status was continued from a
11277 os_WIFCONTINUED_impl(PyObject *module, int status)
11281 WAIT_STATUS_INT(wait_status) = status;
11291 status: int
11293 Return True if the process returning status was stopped.
11297 os_WIFSTOPPED_impl(PyObject *module, int status)
11301 WAIT_STATUS_INT(wait_status) = status;
11311 status: int
11313 Return True if the process returning status was terminated by a signal.
11317 os_WIFSIGNALED_impl(PyObject *module, int status)
11321 WAIT_STATUS_INT(wait_status) = status;
11331 status: int
11333 Return True if the process returning status exited via the exit() system call.
11337 os_WIFEXITED_impl(PyObject *module, int status)
11341 WAIT_STATUS_INT(wait_status) = status;
11351 status: int
11353 Return the process return code from status.
11357 os_WEXITSTATUS_impl(PyObject *module, int status)
11361 WAIT_STATUS_INT(wait_status) = status;
11371 status: int
11373 Return the signal that terminated the process that provided the status value.
11377 os_WTERMSIG_impl(PyObject *module, int status)
11381 WAIT_STATUS_INT(wait_status) = status;
11391 status: int
11393 Return the signal that stopped the process that provided the status value.
11397 os_WSTOPSIG_impl(PyObject *module, int status)
11401 WAIT_STATUS_INT(wait_status) = status;
12718 to retrieve the application's exit status.
14807 status as status_obj: object
14809 Convert a wait status to an exit code.
14813 * If WIFEXITED(status) is true, return WEXITSTATUS(status).
14814 * If WIFSIGNALED(status) is true, return -WTERMSIG(status).
14817 On Windows, return status shifted right by 8 bits.
14820 WUNTRACED option, the caller must first check if WIFSTOPPED(status) is true.
14821 This function must not be called if WIFSTOPPED(status) is true.
14829 int status = _PyLong_AsInt(status_obj);
14830 if (status == -1 && PyErr_Occurred()) {
14835 WAIT_STATUS_INT(wait_status) = status;
14865 PyErr_Format(PyExc_ValueError, "invalid wait status: %i", status);
14872 unsigned long long status = PyLong_AsUnsignedLongLong(status_obj);
14873 if (status == (unsigned long long)-1 && PyErr_Occurred()) {
14877 unsigned long long exitcode = (status >> 8);