in reply to Kill a child nicely

I could be wrong, but this smells like an XY Problem problem to me.

If you describe the bigger picture, what problem you're trying to solve, on which platform/s (Unix or Windows or both), we may be able to suggest better alternatives.

A popular alternative to a forking server in Perl is a single-threaded event-driven server.