I am using dtach like this: dtach -A /tmp/mysession -Ez bash. This starts bash. Now, how do I detach from dtach? I have disabled the detach character using the -E option, so I cannot press Ctrl\ to detach. The man page says:
-E
Disables the detach character. dtach does not try to scan input from the terminal for a detach character. The only way to detach from the session is then by sending the attaching process an appropriate signal.
The man page doesn't specify what the "appropriate signal" is. How exactly do I detach from within bash when the detach character is disabled?
I tried kill -SIGHUP $$, but that always terminates dtach ([EOF - dtach terminating]) instead of detaching.