add unit test for mg_wakeup

This commit is contained in:
Sergio R. Caprile committed 2026-06-19 11:35:02 -03:00
1 parent 9c40c0adf1
commit d60dcf846e
3 files changed
+54 -6

No files matched your search

+1 -1
View File
@@ -731,7 +731,7 @@ bool mg_wakeup_init(struct mg_mgr *mgr) {
sp[0] = sp[1] = MG_INVALID_SOCKET;
} else {
tomgaddr(&usa[0], &c->rem, false);
MG_DEBUG(("%lu %p pipe %lu", c->id, c->fd, (unsigned long) sp[0]));
MG_DEBUG(("%lu %ld pipe %ld", c->id, c->fd, (long) sp[0]));
mgr->pipe.fd = sp[0];
ok = true;
}