galeb

Једноставна статичка дистрибуција заснована на musl-у
git clone https://git.sr.ht/~strahinja/galeb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

musl-sigaction.patch (970B)


      1 Use the generic sigemptyset() available on both, glibc and musl libc
      2 The SA_INTERRUPT is not defined in musl libc. Copy the (unused?)
      3 definition from glibc's header bits/sigaction.h
      4 
      5 --- src/prog/gpm-root.y	2012-10-26 23:21:38.000000000 +0200
      6 +++ src/prog/gpm-root.y	2015-06-22 15:56:19.167982843 +0200
      7 @@ -56,6 +56,9 @@
      8  #define minor(dev) ((dev)&0xff)
      9  #endif
     10  
     11 +#if !defined(SA_INTERRUPT)
     12 +# define SA_INTERRUPT 0x20000000 /* Historical no-op.  */
     13 +#endif
     14  
     15  #define GPM_NULL_DEV "/dev/null"
     16  
     17 @@ -1196,11 +1199,7 @@
     18                                                          LOG_DAEMON : LOG_USER);
     19     /* reap your zombies */
     20     childaction.sa_handler=reap_children;
     21 -#if defined(__GLIBC__)
     22 -   __sigemptyset(&childaction.sa_mask);
     23 -#else /* __GLIBC__ */
     24 -   childaction.sa_mask=0;
     25 -#endif /* __GLIBC__ */
     26 +   sigemptyset(&childaction.sa_mask);
     27     childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
     28     sigaction(SIGCHLD,&childaction,NULL);
     29