code review formatting, K&R conventions
use int size of pid_t to determine length of pid buffer