Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Alexandre Ratchov
On Tue, Sep 04, 2018 at 04:58:53AM +0200, Thomas de Grivel wrote: > > And I still feel the default nice priority of 10 is rather a good > idea. why?

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Antoine Jacoutot
On Tue, Sep 04, 2018 at 04:58:53AM +0200, Thomas de Grivel wrote: > Thanks, good to know. > > But if I actually wanted per daemon priorities with settable > configuration in rc.conf.local how would I get that ? And I still feel You would do what the man page instructs you to do in login.conf:

[patch] Fix closing socket twice bug in netcat program

2018-09-03 Thread Nan Xiao
Hi tech@, Before netcat program exits, it will check whether s is -1, and close socket if s is not -1: if (s != -1) close(s); The following patch fixes the issue that netcat will close socket twice if it works as a server: Index: netcat.c

Re: Linux DRM

2018-09-03 Thread Joseph Mayer
Thomas, On September 4, 2018 10:55 AM, Thomas de Grivel wrote: > Le lun. 3 sept. 2018 à 23:33, Philip Guenther guent...@gmail.com a écrit : > > > On Mon, Sep 3, 2018 at 11:46 AM Thomas de Grivel billi...@gmail.com wrote: > > > > > I was browsing the DRM code ported from Linux and it's a

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Thomas de Grivel
Thanks, good to know. But if I actually wanted per daemon priorities with settable configuration in rc.conf.local how would I get that ? And I still feel the default nice priority of 10 is rather a good idea. Le lun. 3 sept. 2018 à 23:10, Antoine Jacoutot a écrit : > > On Mon, Sep 03, 2018 at

Re: Linux DRM

2018-09-03 Thread Thomas de Grivel
Le lun. 3 sept. 2018 à 23:33, Philip Guenther a écrit : > > On Mon, Sep 3, 2018 at 11:46 AM Thomas de Grivel wrote: >> >> I was browsing the DRM code ported from Linux and it's a terrible >> mess, is there any ongoing project to clean up that codebase or >> rewrite it entirely ? > > > No.

Re: Linux DRM

2018-09-03 Thread Philip Guenther
On Mon, Sep 3, 2018 at 11:46 AM Thomas de Grivel wrote: > I was browsing the DRM code ported from Linux and it's a terrible > mess, is there any ongoing project to clean up that codebase or > rewrite it entirely ? > No. OpenBSD doesn't have the resources to reimplement the DRM subsystem or

Re: Add $daemon_nice to rc.subr

2018-09-03 Thread Antoine Jacoutot
On Mon, Sep 03, 2018 at 10:34:51PM +0200, Thomas de Grivel wrote: > Hello, Hi. > Following patch allows sysadmins to configure nice values for RC daemons. > Default nice value is set to 10 as I wish to prioritize interactive > applications over system daemons and I think most probably do too. >

Linux DRM

2018-09-03 Thread Thomas de Grivel
I was browsing the DRM code ported from Linux and it's a terrible mess, is there any ongoing project to clean up that codebase or rewrite it entirely ? -- Thomas de Grivel

Add $daemon_nice to rc.subr

2018-09-03 Thread Thomas de Grivel
Hello, Following patch allows sysadmins to configure nice values for RC daemons. Default nice value is set to 10 as I wish to prioritize interactive applications over system daemons and I think most probably do too. It is based on OpenBSD 6.3 but might apply easily to later releases. Please let

Re: smtpd: malloc+strlcpy -> strndup

2018-09-03 Thread Michael Mikonos
On Mon, Sep 03, 2018 at 02:24:49PM +0800, Michael Mikonos wrote: > On Sat, Sep 01, 2018 at 11:31:49PM +0200, Gilles Chehade wrote: > > On Sat, Sep 01, 2018 at 09:20:59PM +0800, Michael Mikonos wrote: > > > Hello, > > > > > > Replace a malloc+strlcpy with strndup in cmdline_symset(). > > >

Re: xidle: launching program on timeout without active-area

2018-09-03 Thread Sebastien Marie
ping On Tue, Aug 14, 2018 at 06:15:08AM +0200, Sebastien Marie wrote: > ping > > On Wed, Jul 25, 2018 at 02:13:49PM +0200, Sebastien Marie wrote: > > On Wed, Jul 25, 2018 at 12:55:48PM +0200, Claudio Jeker wrote: > > > On Wed, Jul 25, 2018 at 12:27:29PM +0200, Sebastien Marie wrote: > > > > On

Re: Corrected patch for smtpd.conf(5) man page

2018-09-03 Thread Jason McIntyre
On Mon, Sep 03, 2018 at 02:20:32PM +0200, Gilles Chehade wrote: > On Mon, Sep 03, 2018 at 12:30:22PM +0100, Jason McIntyre wrote: > > On Sun, Sep 02, 2018 at 11:59:25AM -0400, Matt Schwartz wrote: > > > The earlier patch I created was obviously no good. Sorry for the > > > noise. Included is the

Re: Corrected patch for smtpd.conf(5) man page

2018-09-03 Thread Gilles Chehade
On Mon, Sep 03, 2018 at 12:30:22PM +0100, Jason McIntyre wrote: > On Sun, Sep 02, 2018 at 11:59:25AM -0400, Matt Schwartz wrote: > > The earlier patch I created was obviously no good. Sorry for the > > noise. Included is the fixed patch that just adds some text for > > properly using an mda

Re: Corrected patch for smtpd.conf(5) man page

2018-09-03 Thread Jason McIntyre
On Sun, Sep 02, 2018 at 11:59:25AM -0400, Matt Schwartz wrote: > The earlier patch I created was obviously no good. Sorry for the > noise. Included is the fixed patch that just adds some text for > properly using an mda wrapper in the actions: > > Index: smtpd.conf.5 >

[patch] A small modification in /usr.bin/nc/netcat.c

2018-09-03 Thread Nan Xiao
Hi tech@, The following patch uses hostname instead of nodename to be consistent with getaddrinfo declaration: int getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res); Thanks! Index: netcat.c

Re: smtpd: malloc+strlcpy -> strndup

2018-09-03 Thread Michael Mikonos
On Sat, Sep 01, 2018 at 11:31:49PM +0200, Gilles Chehade wrote: > On Sat, Sep 01, 2018 at 09:20:59PM +0800, Michael Mikonos wrote: > > Hello, > > > > Replace a malloc+strlcpy with strndup in cmdline_symset(). > > Parameter s is a "keyname=value" string and sym is the > > "keyname" part. > > > >