python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
`select` works but `kqueue` doesn't when waiting on X11 connection
This blocks until there's an X11 event available:
int x11_fd = ConnectionNumber(display);
fd_set in_fds;
FD_ZERO(&in_fds);
FD_SET(x11_fd, &in_fds);
select(x11_fd + 1, &in_fds, NULL, NULL, ...
Name McChange
Votes: 0
Answers: 1
using EVFILT_READ at the same time as EVFILT_WRITE
i am writing a TCP client with kqueue. The events i would like to subscribe to are EVFILT_READ and EVFILT_WRITE. From freebsd, '''Combinations may be made by OR'ing the desired values. For instance, E...
user18043747
Votes: 0
Answers: 1
Prior to macOS Sierra, why didn't XNU handle THREAD_RESTART in its kqueue_scan_continue function?
I'm trying to find the cause of a nasty kernel panic triggered by Chromium Legacy, a project to backport modern versions of Chromium to old versions of macOS (10.7 – 10.10). The kernel panic occurs wh...
Wowfunhappy
Votes: 0
Answers: 0
How to create or manage Libuv TCP server in a c++ fuction?
I am trying to create a TCP server in a function int create_server(int port_number, char ip_addr_string[IPV4_ADDR_SIZE]) which is called in main.
When I run the c++ code given below: Assertion failed:...
Tyson X
Votes: 0
Answers: 0