Skip to content

Commit

Permalink
options/linux: Stub signalfd where fd != -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Jun 27, 2024
1 parent f788094 commit 26561b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions options/linux/generic/sys-signalfd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <mlibc/linux-sysdeps.hpp>

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) {
Expand Down

0 comments on commit 26561b6

Please sign in to comment.