public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/lua:master commit in: dev-lua/luaevent/files/
@ 2016-01-05 22:26 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; only message in thread
From: Vadim A. Misbakh-Soloviov @ 2016-01-05 22:26 UTC (permalink / raw
  To: gentoo-commits

commit:     1f687651ab216d050c0974205b97268fb2f05f4a
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Tue Jan  5 22:25:55 2016 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Tue Jan  5 22:25:55 2016 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=1f687651

luaevent: fix

Signed-off-by: Vadim A. Misbakh-Soloviov <git <AT> mva.name>

 dev-lua/luaevent/files/gc-anchoring.patch | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dev-lua/luaevent/files/gc-anchoring.patch b/dev-lua/luaevent/files/gc-anchoring.patch
index 37c604e..991aab1 100644
--- a/dev-lua/luaevent/files/gc-anchoring.patch
+++ b/dev-lua/luaevent/files/gc-anchoring.patch
@@ -43,7 +43,7 @@ index afe8773..9e705be 100644
  	}
  }
  /* le_callback is allocated at the beginning of the coroutine in which it
-@@ -40,62 +39,64 @@ is used, no need to manually de-allocate */
+@@ -40,60 +39,62 @@ is used, no need to manually de-allocate */
  /* Index for coroutine is fd as integer for *nix, as lightuserdata for Win */
  void luaevent_callback(int fd, short event, void* p) {
  	le_callback* cb = p;
@@ -107,8 +107,6 @@ index afe8773..9e705be 100644
 -		if( newEvent != event || (cb->timeout.tv_sec != new_tv.tv_sec || cb->timeout.tv_usec != new_tv.tv_usec) ) {
 -			struct timeval *ptv = &cb->timeout;
 -			cb->timeout = new_tv;
--			if(!cb->timeout.tv_sec && !cb->timeout.tv_usec)
--				ptv = NULL;
 -			event_del(ev);
 -			event_set(ev, fd, EV_PERSIST | newEvent, luaevent_callback, cb);
 -			/* Assume cannot set a new timeout.. */
@@ -130,8 +128,6 @@ index afe8773..9e705be 100644
  		}
 +		struct timeval *ptv = &cb->timeout;
 +		cb->timeout = new_tv;
-+		if(!cb->timeout.tv_sec && !cb->timeout.tv_usec)
-+			ptv = NULL;
 +		event_del(ev);
 +		event_set(ev, fd, EV_PERSIST | ret, luaevent_callback, cb);
 +		/* Assume cannot set a new timeout.. */


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-05 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 22:26 [gentoo-commits] proj/lua:master commit in: dev-lua/luaevent/files/ Vadim A. Misbakh-Soloviov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox