Software /
code /
prosody
Comparison
util-src/poll.c @ 9507:33d21f020b66
net.server_epoll: Ignore ENOENT when deregitering socket
It should not really happen
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 12 Oct 2018 03:21:11 +0200 |
parent | 9506:ae6636052be9 |
child | 9508:2055b497b515 |
comparison
equal
deleted
inserted
replaced
9506:ae6636052be9 | 9507:33d21f020b66 |
---|---|
450 lua_pushcfunction(L, Lgc); | 450 lua_pushcfunction(L, Lgc); |
451 lua_setfield(L, -2, "__gc"); | 451 lua_setfield(L, -2, "__gc"); |
452 #endif | 452 #endif |
453 } | 453 } |
454 | 454 |
455 lua_createtable(L, 0, 2); | 455 lua_createtable(L, 0, 3); |
456 { | 456 { |
457 lua_pushcfunction(L, Lnew); | 457 lua_pushcfunction(L, Lnew); |
458 lua_setfield(L, -2, "new"); | 458 lua_setfield(L, -2, "new"); |
459 | 459 |
460 #define push_errno(named_error) lua_pushinteger(L, named_error);\ | 460 #define push_errno(named_error) lua_pushinteger(L, named_error);\ |
461 lua_setfield(L, -2, #named_error); | 461 lua_setfield(L, -2, #named_error); |
462 | 462 |
463 push_errno(EEXIST); | 463 push_errno(EEXIST); |
464 | 464 push_errno(ENOENT); |
465 } | 465 |
466 return 1; | 466 } |
467 } | 467 return 1; |
468 | 468 } |
469 |