def dispatch_bg(self):
        log.warn("Moving process to the background")

        if self.pipe_output:
            print("Output is written to '%s'" % self.data['stdout'])
            self._echo.stop()

        log.warn("Ignoring sighup (%i)" % signal.SIGHUP)

        self._ignore_sighup = True

        si = file('/dev/null', 'r')
        so = file('/dev/null', 'a+')
        se = file('/dev/null', 'a+', 0)
        os.dup2(si.fileno(), sys.stdin.fileno())
        os.dup2(so.fileno(), sys.stdout.fileno())
        os.dup2(se.fileno(), sys.stderr.fileno())
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program/posix.py/PosixProgram.dispatch_bg/original