Re: [dev] Attempt at a suckless syslog

2014-07-18 Thread Weldon Goree
On 07/18/2014 10:27 PM, Weldon Goree wrote: > On 07/18/2014 06:46 PM, Zack Breckenridge wrote: >> \>> >> Of course you never know... Is it possible to make severity and >> facility unsigned integers? >> > > It comes over the wire as an ASCII char which is by contract between 0 > and 7 I should ad

Re: [dev] Attempt at a suckless syslog

2014-07-18 Thread Weldon Goree
On 07/18/2014 06:46 PM, Zack Breckenridge wrote: > > Regarding line 91-92 of logwd.c: > >> if ((severity > 7) || (severity < 0)) { severity = 8; } >> /* Sue me. I'm paranoid. I'm aware of how this "can't happen"... */ > > Of course you never know... Is it possible to make severity and > facilit

Re: [dev] Attempt at a suckless syslog

2014-07-18 Thread Zack Breckenridge
Weldon, I think this is pretty interesting, though I'd have to compare some other implementations of syslogd to actually be able to tell you what functionality is missing that I "can't live without". The code is nice and short though. > ... It currently uses > daemon(3) to detach, but I'm open to

[dev] Attempt at a suckless syslog

2014-07-18 Thread Weldon Goree
Hi all, So, I got tired of trying to make sysklogd play nice with musl, and I built this[0]. It probably needs work, but I thought I would request comments. It's the syslog for my toy/personal obsession distro. I think it adheres to the suckless philosophy pretty well. It opens a UNIX socket at /