diff --git a/options/linux/generic/sys-signalfd.cpp b/options/linux/generic/sys-signalfd.cpp index 28cfea0281..84182cea3d 100644 --- a/options/linux/generic/sys-signalfd.cpp +++ b/options/linux/generic/sys-signalfd.cpp @@ -6,6 +6,10 @@ #include int signalfd(int fd, const sigset_t *mask, int flags) { + if(fd != -1) { + mlibc::infoLogger() << "mlibc: signalfd with fd != -1 is not supported yet" << frg::endlog; + return 0; + } __ensure(fd == -1); MLIBC_CHECK_OR_ENOSYS(mlibc::sys_signalfd_create, -1); if(int e = mlibc::sys_signalfd_create(mask, flags, &fd); e) {