Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 01:23:20 GMT
From:      Amim Knabben <amim.knabben@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184062: Update of www/node==v0.10.22
Message-ID:  <201311190123.rAJ1NKBd039945@oldred.freebsd.org>
Resent-Message-ID: <201311190130.rAJ1U0kN005852@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184062
>Category:       ports
>Synopsis:       Update of www/node==v0.10.22
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 19 01:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Amim Knabben
>Release:        9.2 i386
>Organization:
>Environment:
FreeBSD devil 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The actual package of Node.JS stable is 0.10.19 on ports, I have compiled the version v0.10.22, with the patch that follows
>How-To-Repeat:
Compile the version 0.10.22 of Node.JS
>Fix:
Patch is attached

Patch attached with submission follows:

--- deps/uv/src/unix/kqueue.orig    2013-11-18 23:14:54.000000000 -0200
+++ deps/uv/src/unix/kqueue.c	2013-11-18 23:16:51.000000000 -0200
@@ -263,6 +263,25 @@
   }
 }
 
+ 
+void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) {
+  struct kevent* events;
+  uintptr_t i;
+  uintptr_t nfds;
+
+  assert(loop->watchers != NULL);
+
+ events = (struct kevent*) loop->watchers[loop->nwatchers];
+  nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1];
+  if (events == NULL)
+    return;
+
+  /* Invalidate events with same file descriptor */
+  for (i = 0; i < nfds; i++)
+    if ((int) events[i].ident == fd)
+      events[i].ident = -1;
+}
+
 
 static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) {
   uv_fs_event_t* handle;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311190123.rAJ1NKBd039945>