mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
PID cache is never cleared where fork
is not used
This commit is contained in:
parent
05b7bbecc6
commit
1d529f382c
Notes:
git
2023-04-04 03:30:55 +00:00
1 changed files with 2 additions and 0 deletions
|
@ -506,11 +506,13 @@ get_pid(void)
|
||||||
return PIDT2NUM(cached_pid);
|
return PIDT2NUM(cached_pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined HAVE_WORKING_FORK || defined HAVE_DAEMON
|
||||||
static void
|
static void
|
||||||
clear_pid_cache(void)
|
clear_pid_cache(void)
|
||||||
{
|
{
|
||||||
cached_pid = 0;
|
cached_pid = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue