One use I can think of is killing a child process in such a way that the parent process considers it has successfully returned.
For example you have a "curl" command in a script that is waiting for a server that doesn't respond, killing the process with the kill command may cause the script to fail. If you want the script to continue anyway, you can use that trick.
For example you have a "curl" command in a script that is waiting for a server that doesn't respond, killing the process with the kill command may cause the script to fail. If you want the script to continue anyway, you can use that trick.