From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 14:51:22 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B9B316A420 for ; Sat, 1 Apr 2006 14:51:22 +0000 (UTC) (envelope-from V.Haisman@sh.cvut.cz) Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFBAD43D45 for ; Sat, 1 Apr 2006 14:51:20 +0000 (GMT) (envelope-from V.Haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id C33481A32E2; Sat, 1 Apr 2006 16:51:18 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12382-02; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 9479E1A32F7; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Received: from [192.168.1.2] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id 5DCFD61C45; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Message-ID: <442E9354.5010700@sh.cvut.cz> Date: Sat, 01 Apr 2006 16:51:00 +0200 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=733031B4 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUnMzWJm5S+0864pn5r blp/hnW2up7X7uqftbNRVUrW1LGBdGfHwJqPi3ScoYtBQzhDxGEwAAAAB3RJTUUH1QoQDDgyQtx8 HQAAAkNJREFUeJzFU0toU0EUPYu66CpGdCUUmoUJkpUDQUoNBVEUrBJsq1Ki2EIKIUZ8mydBhYi0 wVUXJVCLCrFN4DIEQdxIqdBIFsMkWD9YJClCRGKjJaviynjfe8RPogtXPcObuXPOPXd+PHj+Aeyo QNmobGLXVeANGM+GsP0B2yqHHNVoCD2LwLglVGZx7yXSlADR0uZu9C4Bpy3hUxPvH/cuUw6UoPCL h64I8KAJuMpwRU8uUMJy0OIpHVeXmulZoCc/t0LlTbJLEY1EudPRcnVjgAP5Osdl4K5HVP4+2bAI okaUA0Iq6Q59+Zy2eMWN6EpFTsa3+uD1+JKj4TPHuYTSMaLScLAaqk94YJqG4ds30hojOVgYoNJc NTztNU2TBYbhu9Aafnq08ORja37da1NwBrN/b7NVEc+b8yecuYkp08vNvLYneVZRaSH1vS0UnfHm OUPzWaZufHPmCWSdWrfeGVQQKmcsO4If8pAdXJ/xF4QQAeOVY1AQQcfirwkLUWeWVTgi6vaGt2xe BGzBEIMQorru8RxgPqY1V6uxYnwVBRZEI1ytCm3dE8mC2DgcbzCJGHdBEVDKuWDSwsrSGoqzJmNt 2jJpNueIH0qS8/0JrDKnVBdvOzIsdVr4zaX9dn9xcLLKdCtQGfutVacLE9Ja+yfbDvO4aMWrklfK /JYv15C8Kw9S10kup5Bys0N1bLdcn4HvTl/Xlh6Fpllwj5/XpH9BUXn/ym0Dvv7Rt2MywojpYiSi i7Hsscaa19zZ//y/hR+BT/ns80nmJAAAAABJRU5ErkJggg== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD19178C198EE9223A95AABFE" X-Virus-Scanned: by amavisd-new at sh.cvut.cz X-Spam-Status: No, hits=-5.9 tagged_above=-255.0 required=5.0 tests=ALL_TRUSTED, BAYES_00 X-Spam-Level: Cc: Subject: kqueue oddity X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 14:51:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD19178C198EE9223A95AABFE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have a little problem with kqueue/kevent. I am getting somewhat strange events from kevent(). The struct kevent's contents looks like thi= s: kevent {.ident =3D 1, .filter =3D 0xfffffffe, .flags =3D 0x0001, .fflags= =3D 0x00000000, .data =3D 0x000084c6} =2Eident =3D=3D 1 is stdout. =2Efilter =3D=3D 0x fffffffe is -2 is EVFILT_WRITE which makes sense for = stdout. =2Efflags is empty, nothing out of ordinary for EVFILT_WRITE. And here comes the oddity: .flags =3D=3D 0x0001 means EV_ADD which totall= y doesn't make sense to me and neither does according to man kqueue. The code that exhibits this behaviour is io_loop_handler_run() in ioloop-kqueue.c of Dovecot IMAP server. I have re-read the docs more than once but I haven't noticed any sign of that EV_ADD could be set for EVFILT_WRITE filter when I am receiving the events through kevent() funtion. I am out of ideas what to do with it. So I am asking all you hackers for any ideas of what might be going wrong. Is it the code in Dovecot or is it FreeBSD that is doing something wrong? Vaclav Haisman --------------enigD19178C198EE9223A95AABFE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRC6TXG56zbtzMDG0AQLZFggApzkUJQlBQkHQUyEhBWwDOfnAO23SI1Pd cXMWY9uBfyW02Ni+mV1YTRST7fTJtIC1j9rfhL2aRBezW93Q6zU0ZBOxc6UEC/bT aBoAPHBvPWeng6gRUOb2orgauxp4EJididcewpBjT+rWIK5mx4/8fzYJz3xOXrQF 32zHSqDMIFQYNo7gcry8U2/xlDF5E5R8cWyKqfG/yHsgPUPm+CYtWE8Wn5hRZRMh G2rqiqcr/AyHpQL+0MepBJGlukecqSelphIm5+HulOnUeWn5EDG2/38A0HQTksPD oMg5jsQnkVU1q+4mLFrDqbIzVFMOcmt7H6zQTEUpDi98jAu28xWBlg== =qpHI -----END PGP SIGNATURE----- --------------enigD19178C198EE9223A95AABFE--