https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297466

            Bug ID: 297466
           Summary: linuxlator: unsupported POLLMSG, events(-1)
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

Testcase: The Linux agent binary installed by misc/grok-build prints messages
like this into the system log:

> linux: jid 0 pid 5045 (tokio-rt-worker): unsupported POLLMSG, events(-1)


---example---

#include <stdio.h>
#include <poll.h>
#include <unistd.h>
#include <fcntl.h>

int main() {
    // 1. Open a standard file descriptor (e.g., /dev/null)
    int fd = open("/dev/null", O_RDONLY);
    if (fd < 0) {
        perror("Failed to open file descriptor");
        return 1;
    }

    struct pollfd pfd;
    pfd.fd = fd;

    // 2. Set events to -1 (0xFFFF), which activates POLLMSG implicitly
    pfd.events = -1; 
    pfd.revents = 0;

    printf("Invoking poll() with events = %d (Implicitly requesting POLLMSG
0x%X)...\n", 
            pfd.events, POLLMSG);

    // 3. Trigger the syscall
    int ret = poll(&pfd, 1, 100); 

    close(fd);
    return 0;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to