Re: Porting skalibs to GNU Hurd

From: Shengjing Zhu <zhsj_at_debian.org>
Date: Fri, 18 Oct 2019 01:07:16 +0800

On Thu, Oct 17, 2019 at 1:10 AM Laurent Bercot <ska-skaware_at_skarnet.org> wrote:
>
> What problems did you get with s6? It should be able to run without
> trouble. To me that's a more important issue than the ones you listed
> below. :)
>

with the following patch, s6 works...(tested some functions like s6-svscan).

diff --git a/src/libs6/s6_supervise_lock_mode.c
b/src/libs6/s6_supervise_lock_mode.c
index 039760c..8c0843b 100644
--- a/src/libs6/s6_supervise_lock_mode.c
+++ b/src/libs6/s6_supervise_lock_mode.c
_at_@ -36,8 +36,8 @@ int s6_supervise_lock_mode (char const *subdir,
unsigned int subdirmode, unsigne
    strerr_diefu2sys(111, "lock ", lock) ;
  fdctlw = open_write(control) ;
  if (fdctlw >= 0) strerr_dief1x(100, "directory already locked") ;
- if (errno != ENXIO)
- strerr_diefu2sys(111, "open_write ", control) ;
+ //if (errno != ENXIO)
+ // strerr_diefu2sys(111, "open_write ", control) ;
  fdctl = open_read(control) ;
  if (fdctl < 0)
    strerr_diefu2sys(111, "open_read ", control) ;

The errno I got on Hurd is `EIEIO 1073741928 Computer bought the
farm`... Seems a Hurd specific errno...

-- 
Shengjing Zhu
Received on Thu Oct 17 2019 - 17:07:16 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC