Date: Fri, 22 Jun 2007 10:15:25 -0500 From: <gary@velocity-servers.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/113949: [PATCH] qstat poll() support Message-ID: <E1I1kr7-0001vj-5G@longhorn.velocity-servers.net> Resent-Message-ID: <200706221600.l5MG0AP0047847@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113949 >Category: ports >Synopsis: [PATCH] qstat poll() support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 22 16:00:09 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Gary Stanley >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD longhorn.velocity-servers.net 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri Feb 2 09:44:40 CST 2007 root@longhorn.velocity-servers.net:/usr/obj/usr/src/sys/Gary.6 i386 >Description: In qstat.c, we check for USE_POLL, OpenBSD is defined and FreeBSD should be defined as well. This adds support to qstat for POLL on FreeBSD >How-To-Repeat: >Fix: This rough patch should be added, tested and works. before; 90741 qstat CALL select(0x4,0x807abc0,0,0,0xbfbfea88) 90741 qstat RET select 1 after; 93117 qstat CALL poll(0x8080200,0x1,0x3e8) 93117 qstat RET poll 1 --- qstat.c.orig Sat Oct 22 05:20:07 2005 +++ qstat.c Fri Jun 22 09:57:21 2007 @@ -120,6 +120,10 @@ #define USE_POLL #include <sys/poll.h> #endif +#ifdef __FreeBSD__ +#define USE_POLL +#include <sys/poll.h> +#endif #ifdef __OpenBSD__ #define USE_POLL #include <sys/poll.h> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1I1kr7-0001vj-5G>