Fix post_hook for spawnkillable on linux