Date: Fri, 14 Apr 2023 20:08:43 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268580] Add shutdown delay to daemon(8) Message-ID: <bug-268580-227-juZeuFDUkg@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-268580-227@https.bugs.freebsd.org/bugzilla/> References: <bug-268580-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268580 --- Comment #3 from Ihor Antonov <ihor@antonovs.family> --- Nathan's motivation for the shutdown delay is to avoid race conditions caused by asynchronous signal processing. After https://reviews.freebsd.org/rG8935a3993219be76c7ea03e9ad4509657d08af6c was merged none of the described situations are possible. 1. Upon receiving SIGTERM daemon will propagate it to the child, then wait for child to exit and then read everything until EOF from the pipe. 2. Same with the pid file: Child's pidfile cleanup happens only after child reported SIGCHILD, all the data was read from the pipe. At this point I do not see a compelling usecase for shutdown delay feature. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268580-227-juZeuFDUkg>
