0

A little curiosity. A vanilla tmux session (stock config) had 1 pane. The pane was executing the following command:

sleep 1d; shutdown -h now.

1h into the execution of the "sleep" command, the pane was manually killed (via ctrl-c on the terminal). Surprisingly shutdown -h now was executed too.

I wonder why bash executed the shutdown instructions when the tmux pane got killed. I was not expecting it to have this behaviour. Any idea why ?

Env: Ubuntu 18.04 Bash 4.x

2
  • Please be specific: (1) "manually killed" -- how exactly? (2) "shutdown -h now was executed" -- immediately or after 23 additional hours? – Kamil Maciorowski Jul 24 '20 at 5:33
  • @KamilMaciorowski Post is now updated, stating it was killed with Ctrl-C. – David Andreoletti Aug 25 '20 at 2:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.