summarylogtreecommitdiffstats
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 000000000000..a56aba4ed823
--- /dev/null
+++ b/100-pidfile.patch
@@ -0,0 +1,11 @@
+--- htpdate.c 2019-07-12 19:10:17.000000000 +0200
++++ htpdate.c.patched 2020-05-06 13:15:51.419075086 +0200
+@@ -499,7 +499,7 @@
+ printlog( 1, "Error writing pid file" );
+ exit(1);
+ } else {
+- fprintf( pid_file, "%u\n", (unsigned short)pid );
++ fprintf( pid_file, "%d\n", (signed int)pid );
+ fclose( pid_file );
+ }
+ printlog( 0, "htpdate version "VERSION" started" );