Christian Seiler <christ...@iwakd.de> writes: > (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 to do that are >>> >>> settrans -ck /servers/socket/1 >>> settrans -ck /servers/socket/1 /hurd/pflocal > > FYI: that's really weird: the translater appears to be > replaced on my system (up to date Debian sid), but from > the response of programs, the old one still appears to > be used.
Yes, that's what the -k is for, it keeps the old translator running. Also, without specifying -a, settrans only stores the translator record, which does not change. -c creates the node, which already exists. All in all this was just bad advice. >> 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 doesn't work at all here, programs then complain > that they can't assign requested address when doing any > socket operation. Seems to work fine here: teythoon@hurdbox ~ % cd /tmp teythoon@hurdbox /tmp % settrans -ac 1 /hurd/pflocal teythoon@hurdbox /tmp % remap /servers/socket/1 /tmp/1 -- /bin/bash -c 'echo huhu world | wc' 1 2 11 Cheers, Justus
signature.asc
Description: PGP signature