diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-04 11:29:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-04 11:29:57 +0900 |
commit | 1d529f382c4b855d22289990c4369ee68ddd3adc (patch) | |
tree | 69a4942a818c69a15400c70a7e00e333867651ef /process.c | |
parent | 05b7bbecc6cd40add807ee5c85dd282f0c19291c (diff) |
PID cache is never cleared where `fork` is not used
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7649
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |