It seems you are a bit confused: cygwin is a shared library.
You are running programs that use that library.
I will try to explain the situation:
You started a terminal (mintty) that of course invoke the command shell (bash).
If you run additional programs from the command shell, the process tree
will be like :
$ pstree
?───mintty───bash───pstree
This is a minimal tree case.
If you run additional program from the shell and you don't wait or request their end, when you require mintty to terminate itself it will highlight you that you have running processes and that closing the father process (mintty) will force the closure of all the children.
If the only child is the command shell, and it is inactive, mintty will not require confirmation and will terminate itself and the shell.
So you need to terminate all the running processes for mintty stopping to ask you the confirmation to kill all the children.
Mintty is likely asking permission to kill bash. Why you are not closing bash with
exit
? – matzeri – 2016-09-24T19:46:05.410I don't open bash deliberately. It opens automatically when I start cygwin. – zhekaus – 2016-09-26T07:20:33.053
We want to be able to hit the close button without a warning. I have shortcuts that do things like
tail -f
a log file. I don't need to be warned when closing that. – Bruno Bronosky – 2016-12-24T05:34:35.733