add pid to logfile entries

Here is the patch I mentioned on the mailing list to add the PID to the log so we can tell interleaved runs apart from one another.