def __init__(<EOL>self, chroot_directory=None, working_directory='<STR_LIT:/>',<EOL>umask=<NUM_LIT:0>, uid=None, gid=None, prevent_core=True,<EOL>detach_process=None, files_preserve=None, pidfile=None,<EOL>stdin=None, stdout=None, stderr=None, signal_map=None):
self._is_open = False<EOL>self._working_directory = None<EOL>self.chroot_directory = chroot_directory<EOL>self.umask = umask<EOL>self.uid = uid if uid else os.getuid()<EOL>self.gid = gid if gid else os.getgid()<EOL>self.detach_process = detach_process if detach_processelse detach_required()<EOL>self.signal_map = signal_map if signal_map else default_signal_map()<EOL>self.files_preserve = files_preserve<EOL>self.pidfile = pidfile<EOL>self.prevent_core = prevent_core<EOL>self.stdin = stdin<EOL>self.stdout = stdout<EOL>self.stderr = stderr<EOL>self.working_directory = working_directory<EOL>
Initialize a new Instance