When a port monitor starts, it writes its process id into a file named _pid in the current directory and places an advisory lock on the file.