equal
deleted
inserted
replaced
684 ): |
684 ): |
685 '''Spawn a command without waiting for it to finish.''' |
685 '''Spawn a command without waiting for it to finish.''' |
686 # we can't use close_fds *and* redirect stdin. I'm not sure that we |
686 # we can't use close_fds *and* redirect stdin. I'm not sure that we |
687 # need to because the detached process has no console connection. |
687 # need to because the detached process has no console connection. |
688 |
688 |
|
689 stdin = None |
|
690 |
689 try: |
691 try: |
690 stdin = None |
|
691 if stdin_bytes is not None: |
692 if stdin_bytes is not None: |
692 stdin = pycompat.unnamedtempfile() |
693 stdin = pycompat.unnamedtempfile() |
693 stdin.write(stdin_bytes) |
694 stdin.write(stdin_bytes) |
694 stdin.flush() |
695 stdin.flush() |
695 stdin.seek(0) |
696 stdin.seek(0) |