PIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.