I suspect a process not to send EOF when killed with
SIGKILL respectively. Can that be the case (or do all processes always send EOF to
stderr after being terminated with whatever signal)? If yes, how can I immitate such a process so that I can use it in a Java unit test (which needs to run on Linux only for starters)?
I'm aware of the fact this is probably an XY problem and asking for support in debugging the Java code would get things fixes more quickly, but I'm interested in a getting an answer to this question as well. I'm also aware that process handling has been improved in Java 9 which I can't use yet.
I'm using Ubuntu 17.04 with Linux 4.10.