CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/10/14 22:24:40
Modified files:
usr.sbin/ypbind: ypbind.c
Log message:
privdrop to _ypbind. The late use of daemon() until YP binding succeeds
(to wait in the rc script, but also allow ^C if the admin wants to fix
a mess) was a problem. Now it opens a pipe[], forks the parent which
does half of daemon up front, the remaining parts happen upon binding
success. If the parent gets tty signals, it must forward to the child
who has already called setsid(). unveils and pledges have been moved around.
tested by jmatthew