Skip to content

nohup/tmux processes killed when last terminal closes #1007

Closed

Description

Running nohup sleep 10000 & or tmux +<prefix>d to detach only hang around until the last terminal is closed.

  • Expected results

Programs run in tmux or nohup will last until they are killed by the user.

  • Actual results (with terminal output if applicable)

Processes are killed when the last terminal closes.

  • Your Windows build number

10.0.14393

  • Steps / commands required to reproduce the error

run nohup sleep 10000 &, ps aux to ensure the process is running, close terminal, reopen and run ps aux again.

  • Required packages and commands to install

tmux or coreutils

Activity

  1. rodrymbo commented on Aug 29, 2016

    @rodrymbo

    Welcome.

    It's actually when the last Bash.exe console closes that the environment gets shut down, which is more of a distinction without a difference. Yeah, it's been noted and a fix requested. You can add your vote.

    There are some workarounds, which mostly deal with ways to hide that last Bash.exe window so we don't accidentally close it by mistake. Once you have even one hidden Bash.exe window running, you can start lots of things in the background or as daemons. Not perfect, and I haven't seen a way to start things at Windows boot (only at Logon of the user).

    #834, #709, #612 etc

  2. Brian-Perkins commented on Nov 22, 2017

    @Brian-Perkins
    Contributor

    Windows Insider Build 17046 allows programs to execute without an active terminal.

  3. therealkenc commented on May 24, 2018

    @therealkenc

    Available in Spring Creators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions