Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
erlang
0534-Remove-shortcut-for-timeout-0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0534-Remove-shortcut-for-timeout-0.patch of Package erlang
From 681552b22e45a0ac63d7372ba97550733869070f Mon Sep 17 00:00:00 2001 From: Raimo Niskanen <raimo@erlang.org> Date: Tue, 11 Feb 2020 16:37:08 +0100 Subject: [PATCH 1/2] Remove shortcut for timeout == 0 --- erts/emulator/drivers/common/inet_drv.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c index 66ff8d8450..2ef452fa01 100644 --- a/erts/emulator/drivers/common/inet_drv.c +++ b/erts/emulator/drivers/common/inet_drv.c @@ -12607,12 +12607,8 @@ static ErlDrvSSizeT packet_inet_ctl(ErlDrvData e, unsigned int cmd, char* buf, return ctl_error(EALREADY, rbuf, rsize); if (packet_inet_input(udesc, desc->event) == 0) { - if (timeout == 0) - async_error_am(desc, am_timeout); - else { - if (timeout != INET_INFINITY) - driver_set_timer(desc->port, timeout); - } + if (timeout != INET_INFINITY) + driver_set_timer(desc->port, timeout); } return ctl_reply(INET_REP_OK, tbuf, 2, rbuf, rsize); } -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor