summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2a1a607)
Fixes: #2921
Fixes:
f3f42ff09 ("address: Replace ualarm with setitimer")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
const char *family = luaL_optstring(L, 2, NULL);
#ifdef __linux__
const char *family = luaL_optstring(L, 2, NULL);
#ifdef __linux__
- const struct itimerval t = { {timeout * 1000 * 1000, 0} , {0, 0} };
struct sigaction sa_new, sa_old;
int timeout = luaL_optnumber(L, 3, 0);
struct sigaction sa_new, sa_old;
int timeout = luaL_optnumber(L, 3, 0);
+ const struct itimerval t = { {timeout * 1000 * 1000, 0} , {0, 0} };
if (timeout > 0 && timeout < 1000)
{
sa_new.sa_handler = nixio__handle_alarm;
if (timeout > 0 && timeout < 1000)
{
sa_new.sa_handler = nixio__handle_alarm;