3 ms·
> However, what if the need arises to forcefully terminate a process, disguising it as a successful exit? ... Since the parent process would detect the non-zero
by albertzeyer 2y ago
> However, what if the need arises to forcefully terminate a process, disguising it as a successful exit? ... Since the parent process would detect the non-zero exit code, there was a high likelihood of making things worse.
I'm still trying to imagine what situation that is. I still cannot think about any real case where this is something you need.
If there is, I guess this is a very rare case? As it was already commented, I guess just gdb then?
But the technical details on how they do it are interesting nevertheless.
- deleted 2y ago[deleted]
- gdgghhhhh 2y agoOne use case I have faced more than once are stuck processes in legacy build systems. For example, generating docs takes ages. Just killing the generator process will fail the build because the parent will notice. And since the build system is buggy/old, restarting the build will start from zero.