summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/process.c b/process.c
index 4237bbd0f7..daf3456bfd 100644
--- a/process.c
+++ b/process.c
@@ -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: