Add PID to stdio marks.

Resolves #856.