2

Currently I'm using kill-session command, but it looks a bit aggressive and often leave sub-processes running, e.g. I have the following processes running in separate tmux windows:

lighttpd -D -f ~/.lighttpd/default.conf # -D don't go to background
foreman # http://ddollar.github.com/foreman/

and whenever I quit tmux session using kill-session those processes still running, looks like it send them into background for some reason which is a bit unexpected.

1

1 Answer 1

0

The only alternative to that is to detach tmux and reattach it later. If you stop tmux (through kill-session or any other means), those processes need to be sent to the background (i.e. become children of init) as there is no longer a tmux process that they are children of.

3
  • 1
    and how is it possible to kill those processes when exiting tmux instead of sending them to the background?
    – Alp
    Jun 23, 2013 at 11:11
  • Just exit tmux. Jun 23, 2013 at 11:39
  • that does not seem to work in my case. i have created a new question: superuser.com/questions/611047/…
    – Alp
    Jun 23, 2013 at 12:49

Not the answer you're looking for? Browse other questions tagged .