summaryrefslogtreecommitdiffstats
path: root/100-pidfile.patch
diff options
context:
space:
mode:
Diffstat (limited to '100-pidfile.patch')
-rw-r--r--100-pidfile.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/100-pidfile.patch b/100-pidfile.patch
new file mode 100644
index 0000000..a56aba4
--- /dev/null
+++ b/100-pidfile.patch
@@ -0,0 +1,11 @@
1--- htpdate.c 2019-07-12 19:10:17.000000000 +0200
2+++ htpdate.c.patched 2020-05-06 13:15:51.419075086 +0200
3@@ -499,7 +499,7 @@
4 printlog( 1, "Error writing pid file" );
5 exit(1);
6 } else {
7- fprintf( pid_file, "%u\n", (unsigned short)pid );
8+ fprintf( pid_file, "%d\n", (signed int)pid );
9 fclose( pid_file );
10 }
11 printlog( 0, "htpdate version "VERSION" started" );