diff -up ypserv-2.26/lib/pidfile.c.cloexec ypserv-2.26/lib/pidfile.c --- ypserv-2.26/lib/pidfile.c.cloexec 2011-04-15 16:49:41.000000000 +0200 +++ ypserv-2.26/lib/pidfile.c 2012-04-13 20:49:55.643903727 +0200 @@ -33,7 +33,7 @@ create_pidfile (const char *filename, co char pbuf[50], *ptr; struct flock lock; - fd = open (filename, O_CREAT | O_RDWR, + fd = open (filename, O_CREAT | O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (fd < 0) {