Re: OpenBSD 6.1: relayd does not start more than 3 processes

2017-05-05 Thread Hiltjo Posthuma
On Fri, May 05, 2017 at 12:30:56PM +0200, Maxim Bourmistrov wrote: > > Hey, > on OpenBSD 6.0-stable I have following configuration for relayd: > > snip——— > interval 10 > timeout 1200 > prefork 15 > log all > —— > > Respective login.conf to spawn more relayd procs: > >

Re: OpenBSD 6.1: relayd does not start more than 3 processes

2017-05-07 Thread Hiltjo Posthuma
On Fri, May 05, 2017 at 04:05:09PM +0200, Maxim Bourmistrov wrote: > > > 5 maj 2017 kl. 15:55 skrev Maxim Bourmistrov : > > > > > >> 5 maj 2017 kl. 14:41 skrev Hiltjo Posthuma : > >> > >> On Fri, May 05, 2017 at 12:30:56PM +0200, Maxim Bourmistr

[patch] mg: fix overflow on vteeol()

2017-05-07 Thread Hiltjo Posthuma
Hey, mg crashes with certain (unicode) characters and moving the cursor to the end of the line. The characters are printed to the screen as \nnn in vtpute() and vtcol is updated, however vteeol() will write beyond the buffer. A test file contains the data: —— It is printed to t

httpd: use __func__ in log messages

2017-05-07 Thread Hiltjo Posthuma
Hey, This patch replaces the prefix in the log functions to __func__. diff --git a/usr.sbin/httpd/httpd.c b/usr.sbin/httpd/httpd.c index 40464012814..5965e3ded4d 100644 --- a/usr.sbin/httpd/httpd.c +++ b/usr.sbin/httpd/httpd.c @@ -791,7 +791,7 @@ socket_rlimit(int maxfd) struct rlimit

relayd: use __func__ in log messages

2017-05-07 Thread Hiltjo Posthuma
Hey, This replaces the prefix in log messages to __func__. Some older code had the prefix still set to another name. Patch below: diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c index 45bd5f3224b..de002488d9c 100644 --- a/usr.sbin/relayd/ca.c +++ b/usr.sbin/relayd/ca.c @@ -96,11 +96,11

Re: [patch] mg: fix overflow on vteeol()

2017-05-12 Thread Hiltjo Posthuma
On Sun, May 07, 2017 at 05:31:26PM +0200, Hiltjo Posthuma wrote: > Hey, > > mg crashes with certain (unicode) characters and moving the cursor to the > end of the line. > > The characters are printed to the screen as \nnn in vtpute() and vtcol is > updated, however vteeol()

<    1   2