ports/sysutils/runit/files/patch-src_svlogd.c
Alexey Dokuchaev 127a2c2e44 - Add a patch to allow sending logs via UDP [1]
- Convert to option helper target and optimize
  away ``.for'' loop in its recipe while here

PR:	207747 [1]
2017-03-07 11:45:34 +00:00

10 lines
326 B
C

--- src/svlogd.c.orig 2014-08-10 18:22:34 UTC
+++ src/svlogd.c
@@ -430,6 +430,7 @@ unsigned int logdir_open(struct logdir *
ld->name =(char*)fn;
ld->ppid =0;
ld->match ='+';
+ ld->udpaddr.sin_family =AF_INET;
ld->udpaddr.sin_port =0;
ld->udponly =0;
while (! stralloc_copys(&ld->prefix, "")) pause_nomem();