/* ISC license. */ /* MT-unsafe */ #include #include #include "selfpipe-internal.h" sigset_t selfpipe_caught ; #ifdef SKALIBS_HASSIGNALFD int selfpipe_fd = -1 ; #else #include #include int selfpipe[2] = { -1, -1 } ; void selfpipe_tophalf (int s) { unsigned char c = (unsigned char)s ; write(selfpipe[1], (char *)&c, 1) ; } #endif