Half-way into horrifying zcoin miner.
Booya, this works great.
Now it prints the PID.