> Process is started with debugging flags, not suspended.
>
> java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,suspend=n
> class-name
>
> Sometime later a debugger process is started and attaches to the
> debuggee process using the attaching connector and shared memory
> transport. At this point the debugger is merely attached - no
> breakpoints are set and the target process is still running.
>
> Now if you kill the debugger process (ctrl-c from the console or End
> Process from the NT task manager), the debuggee process prints a message
> to the console ('Transport error, error code = -1') and is then hung.
>
> Is there any possibility that the target VM could detect this situation
> and recover?
>
> java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,suspend=n
> class-name
>
> Sometime later a debugger process is started and attaches to the
> debuggee process using the attaching connector and shared memory
> transport. At this point the debugger is merely attached - no
> breakpoints are set and the target process is still running.
>
> Now if you kill the debugger process (ctrl-c from the console or End
> Process from the NT task manager), the debuggee process prints a message
> to the console ('Transport error, error code = -1') and is then hung.
>
> Is there any possibility that the target VM could detect this situation
> and recover?