PID cache is never cleared where fork is not used

This commit is contained in:
Nobuyoshi Nakada 2023-04-04 11:29:57 +09:00
parent 05b7bbecc6
commit 1d529f382c
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
Notes: git 2023-04-04 03:30:55 +00:00

View File

@ -506,11 +506,13 @@ get_pid(void)
return PIDT2NUM(cached_pid);
}
#if defined HAVE_WORKING_FORK || defined HAVE_DAEMON
static void
clear_pid_cache(void)
{
cached_pid = 0;
}
#endif
/*
* call-seq: