Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 46 forks source link

ConEmu Stays Running After Unclean Exit of the Parent Process #5

Open hypersw opened 8 years ago

hypersw commented 8 years ago

Ideally, the control cleans up the child ConEmu process upon destruction. But that's it if can. Aborting a thread, unloading an appdomain, or killing the process prevents this.

In which case ConEmu processes might remain running forever.

ConEmu in the Inside-HWND mode should monitor its parent process and HWND and exit automatically as soon as those are gone.

Maximus5 commented 8 years ago

151217

hypersw commented 8 years ago

untitled20151223142422

As of 15-12-22.

This happened when I killed the parent winforms process with debugger at the moment when payload process has exited and conemu were showing the "enter or esc" prompt.

Should not prompt user but be killed silently for the whole console process tree. Might be an option, but by default I'd expect such behavior for a built-in terminal.