From owner-freebsd-mono@freebsd.org Tue Jan 26 00:03:02 2016 Return-Path: Delivered-To: freebsd-mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2447DA45DB1 for ; Tue, 26 Jan 2016 00:03:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 107AF7AE for ; Tue, 26 Jan 2016 00:03:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0EC8DA45DB0; Tue, 26 Jan 2016 00:03:02 +0000 (UTC) Delivered-To: mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E66EA45DAF for ; Tue, 26 Jan 2016 00:03:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 000D97AD for ; Tue, 26 Jan 2016 00:03:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0Q031Tw011909 for ; Tue, 26 Jan 2016 00:03:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: mono@FreeBSD.org Subject: [Bug 198727] [PATCH] lang/mono FileSystemWatcher (kevent) deadlock problem Date: Tue, 26 Jan 2016 00:03:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: radovanovic@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mono@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2016 00:03:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198727 --- Comment #7 from Ivan Radovanovic --- I finally found some time to implement this watcher properly for FreeBSD (n= ote: this probably makes it incompatible with OSX (I don't have way to test)).=20 File descriptor limit is completely removed and unless files themselves are monitored for modification (ie for size change, attribute change and simila= r) descriptors are used only for directories. Solution is as fast as possible while still being as close to Microsoft's spec as possible (unfortunately on FreeBSD that means re-reading directory after each modification (although t= hat is done directly using OS libc interface, I don't know how fast/slow it wou= ld be on huge directories)). This is not really patch, but rather complete new implementation (I think b= est idea would be actually to rename this one to FreeBsdWatcher and to patch Makefile to include it in build - maybe it would be possible to have it included in Mono's HEAD that way) There are 2 patch files included - one for FileSystemWatcher to add necessa= ry function to directly dispatch events, and second for changing KeventWatcher (both files are in patch-files-4.2.2.10.tar.xz archive). I think this closes this issue once for all (and hopefully all FileWatcher related issues on FreeBSD). --=20 You are receiving this mail because: You are the assignee for the bug.=