This starts two sleep processes and expects them to be killed on SIGHUP. Unfortunately, if this ever fails the second run will also fail because it'll see the old sleep still lying around (because it'll run for 130 seconds). So, what we do is: 1. Keep the pids for these specific sleeps 2. Check if any of them are still running (and only fail for them) 3. Kill them from python Fixes #9152