mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Use pjdlog_exit() before fork().
MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
This commit is contained in:
parent
b938cdcc9b
commit
6be3a25c85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212034
@ -771,14 +771,14 @@ hastd_primary(struct hast_resource *res)
|
||||
*/
|
||||
if (proto_client("socketpair://", &res->hr_ctrl) < 0) {
|
||||
KEEP_ERRNO((void)pidfile_remove(pfh));
|
||||
primary_exit(EX_OSERR,
|
||||
pjdlog_exit(EX_OSERR,
|
||||
"Unable to create control sockets between parent and child");
|
||||
}
|
||||
|
||||
pid = fork();
|
||||
if (pid < 0) {
|
||||
KEEP_ERRNO((void)pidfile_remove(pfh));
|
||||
primary_exit(EX_TEMPFAIL, "Unable to fork");
|
||||
pjdlog_exit(EX_TEMPFAIL, "Unable to fork");
|
||||
}
|
||||
|
||||
if (pid > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user