Re: [PATCH] [hurd] pflocal/socket.c: Support MSG_DONTWAIT in pflocal send/recv

2016-08-08 Thread Christian Seiler
On 08/08/2016 12:18 PM, Justus Winter wrote: >> [settrans -ck stuff] > All in all this was just bad advice. Ok, good to know. :) >>> Use the remap translator instead, which is one of the things the Hurd >>> design allows you to do easily. >>> >>> See /bin/remap to easily set one. >> >> remap does

Re: [PATCH] [hurd] pflocal/socket.c: Support MSG_DONTWAIT in pflocal send/recv

2016-08-08 Thread Christian Seiler
(The following is not really important, rebooting does work, so it's not a showstopper.) On 08/07/2016 09:13 PM, Richard Braun wrote: > On Sun, Aug 07, 2016 at 08:44:56PM +0300, Esa Peuha wrote: >>> PS: Is there any way to sanely restart /hurd/pflocal without >>> rebooting? >> >> Yes, the commands

Re: Bugs in Hurd's recvmsg (msg_name AF_LOCAL, MSG_DONTWAIT)

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > I've now isolated the problems and have a reproducer (attached) > and it has _nothing_ to do with SCM_CREDS, but with much more > basic functionality. > > Problem 1 (causing SIGLOST): > > When msg_name and msg_namelen ar

[PATCH] [glibc] sysdeps/mach/hurd/recvmsg.c: don't try to resolve invalid address

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > Problem 1 (causing SIGLOST): > > When msg_name and msg_namelen are filled for a SOCK_STREAM AF_LOCAL > socket (maybe also other AF_LOCAL, didn't check) upon calling > recvmsg, SIGLOST is generated. So this is actually a b

[PATCH] [hurd] pflocal/socket.c: Support MSG_DONTWAIT in pflocal send/recv

2016-08-05 Thread Christian Seiler
On 08/01/2016 12:08 PM, Christian Seiler wrote: > Problem 2: > > MSG_DONTWAIT is ignored for recvmsg, it always blocks (at least > when using AF_LOCK sockets). I've even tried to pre-fill the > msg_flags member with it (which you shouldn't need to do > according

Bugs in Hurd's recvmsg (msg_name AF_LOCAL, MSG_DONTWAIT)

2016-08-01 Thread Christian Seiler
Hi, I've now isolated the problems and have a reproducer (attached) and it has _nothing_ to do with SCM_CREDS, but with much more basic functionality. Problem 1 (causing SIGLOST): When msg_name and msg_namelen are filled for a SOCK_STREAM AF_LOCAL socket (maybe also other AF_LOCAL, didn't check)

Re: open-isns porting question: sudden SIGLOST

2016-07-27 Thread Christian Seiler
On 07/27/2016 07:25 PM, Svante Signell wrote: > (Adding bug-hurd to the Cc: list, not all developers follows the > debian-hurd list) > > On Wed, 2016-07-27 at 18:15 +0200, Christian Seiler wrote: >> Oh, I should mention that every time you run isnsadm the server >> (isn

Re: open-isns porting question: sudden SIGLOST

2016-07-27 Thread Christian Seiler
On 07/28/2016 12:45 AM, Svante Signell wrote: > On Wed, 2016-07-27 at 23:38 +0200, Christian Seiler wrote: >> On 07/27/2016 07:25 PM, Svante Signell wrote: >>> >> (FTR: <http://paste.debian.net/785673/>, code is more or less >> identical to the code in op