[syslog-ng]Foreground patch for syslog-ng 1.4.16

Rolf Petter Halle rph@online.no
Fri, 11 Oct 2002 21:15:41 +0200


This is a multi-part message in MIME format.

--Multipart_Fri__11_Oct_2002_21:15:41_+0200_00643bc8
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit



Hi!

In order to run syslog-ng under supervise control
(http://cr.yp.to/daemontools.html), I've added 
support to start it in the foreground.

Hopefully, this patch (or similar functionality) can
be added to the source.

Rolf Petter Halle

--Multipart_Fri__11_Oct_2002_21:15:41_+0200_00643bc8
Content-Type: application/octet-stream;
 name="syslog-ng.diff"
Content-Disposition: attachment;
 filename="syslog-ng.diff"
Content-Transfer-Encoding: base64

ZGlmZiAtcnVOIHN5c2xvZy1uZy0xLjQuMTYub3JpZy9kb2Mvc3lzbG9nLW5nLjggc3lzbG9nLW5n
LTEuNC4xNi9kb2Mvc3lzbG9nLW5nLjgKLS0tIHN5c2xvZy1uZy0xLjQuMTYub3JpZy9kb2Mvc3lz
bG9nLW5nLjgJU2F0IEp1bCAxMCAxNzo1ODozMiAxOTk5CisrKyBzeXNsb2ctbmctMS40LjE2L2Rv
Yy9zeXNsb2ctbmcuOAlGcmkgT2N0IDExIDIwOjQ5OjUzIDIwMDIKQEAgLTcsNyArNyw3IEBACiAK
IC5CIHN5c2xvZy1uZwogWwotLkIgXC1kdlYKKy5CIFwtZHZWaQogXSBbCiAuQiBcLWYKIDxcZklj
b25maWctZmlsZW5hbWVcZlA+CkBAIC04Miw2ICs4Miw5IEBACiAuVFAKIC5CIFwtVgogUHJpbnQg
dGhlIHZlcnNpb24gbnVtYmVyLgorLlRQCisuQiBcLWkKK1J1biBpbiBmb3JlZ3JvdW5kIChpbnRl
cmFjdGl2ZSkuCiAuU0ggRElBR05PU1RJQ1MKIEl0IGlzIGV4cGVjdGVkIHRoYXQgXGZCc3lzbG9n
LW5nXGZQIHdpbGwgcnVuIGFzIHJvb3QsIGhvd2V2ZXIsIGlmIG5vdCBydW5uaW5nCiB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