mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
11 lines
351 B
C
11 lines
351 B
C
--- src/rinetd.c.orig 2023-10-07 16:13:36 UTC
|
|
+++ src/rinetd.c
|
|
@@ -927,7 +927,7 @@ RETSIGTYPE quit(int s)
|
|
|
|
void registerPID(char const *pid_file_name)
|
|
{
|
|
-#if defined(__linux__)
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
FILE *pid_file = fopen(pid_file_name, "w");
|
|
if (pid_file == NULL) {
|
|
/* non-fatal, non-Linux may lack /var/run... */
|