Commit Graph
18 Commits
Author SHA1 Message Date
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Marek Habersack becbc3884f 2009-09-30 Marek Habersack <[email protected]>
* InotifyWatcher.cs: optimized the Renamed event child update loop
	in the previous commit for directories in ProcessEvents.

svn path=/trunk/mcs/; revision=142984
2009-09-30 10:39:11 +00:00
Gonzalo Paniagua Javier a1cb05c2e4 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: fixes bug #322330. Patch by Alexander Kojevnikov.
	This patch fixes the issues reported by the OP and in my previous
	comment. In particular:

	Hunks 1 and 4 remove the new_name_needed flag, it's not used
	anywhere and only adds confusion.

	Hunk 2 skips DeleteSelf event for sub-directories, they receive the
	Delete event anyway.

	Hunk 3 makes sure that we use a combination of Deleted+Created
	notifications instead of a single Renamed notification, if the watched item
	has been moved from one directory to another. This is because RenamedEventArgs
	supports only one directory name: FullPath is always directory+name,
	OldFullPath is always directory+old_name.

	Hunk 5 updates relevant InotifyData instances with the new directory
	name.  Without this, notifications always use the original folder names.

	The last hunk may be a bit slow as it needs to iterate on all the
	InotifyData instances. On the other hand, we are already doing it on the
	Delete event (lines 560:568) and by default inotify allows only 8192 watches
	per user.


svn path=/trunk/mcs/; revision=142958
2009-09-30 05:26:16 +00:00
Gonzalo Paniagua Javier 6457cfba7c 2009-07-13 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: when a watched subdirectory is deleted, remove it
	from the list of children and only raise an event if it matches the
	filter.


svn path=/trunk/mcs/; revision=137829
2009-07-13 22:31:34 +00:00
Marek Habersack 90b4f380d1 2009-06-04 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged ignores the directory
	part of the file triggering the event. Fixes bug #509998

2009-06-04  Marek Habersack  <[email protected]>

	* InotifyWatcher.cs: filter pattern should be matched on file name
	alone, not on the relative path of the file triggering the
	event. Fixes bug #509998

svn path=/trunk/mcs/; revision=135460
2009-06-04 17:33:52 +00:00
Gonzalo Paniagua Javier 0fff03b008 2009-03-11 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: don't send events when a directory is created
	unless it matches the pattern.  Fixes bug #484082.


svn path=/trunk/mcs/; revision=129112
2009-03-12 00:20:55 +00:00
Gonzalo Paniagua Javier 000a4db3e3 svn path=/trunk/mcs/; revision=116505 2008-10-20 12:37:55 +00:00
Gonzalo Paniagua Javier f1a6211ad2 2008-10-02 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: IN_CLOSE_WRITE is triggered when a writable file is
	closed, but that does not mean that the file was actually modified.
	Fixes bug #323188.

svn path=/trunk/mcs/; revision=114646
2008-10-02 04:09:54 +00:00
Rodrigo Kumpera d1753383d8 In .:
2008-09-08  Rodrigo Kumpera  <[email protected]>

	* InotifyWatcher.cs: Really fix #359181.


svn path=/trunk/mcs/; revision=112515
2008-09-08 16:01:21 +00:00
Dick Porter 3ea724a977 2008-09-01 Dick Porter <[email protected]>
* InotifyWatcher.cs: Revert fix for bug 322330, as it is somehow
	breaking other stuff.


svn path=/trunk/mcs/; revision=112020
2008-09-01 13:03:29 +00:00
Dick Porter 5b576bcc65 2008-06-20 Dick Porter <[email protected]>
* InotifyWatcher.cs: If a directory is renamed, make sure the old
	version is removed from the requests hash.  Fixes bug 322330.



svn path=/trunk/mcs/; revision=106302
2008-06-20 13:31:37 +00:00
Rodrigo Kumpera 1afd66ee47 2008-06-18 Rodrigo Kumpera <[email protected]>
* InotifyWatcher.cs: patch from Juraj Skripsky to fix
	rename events (fixes bug #359181).



svn path=/trunk/mcs/; revision=106129
2008-06-18 17:22:55 +00:00
Paolo Molaro 1f89e1d097 Tue Mar 11 14:29:22 CET 2008 Paolo Molaro <[email protected]>
* InotifyWatcher.cs: patch from Anders Rune Jensen ([email protected])
	to reduce memory usage (fixes bug #362147).


svn path=/trunk/mcs/; revision=97948
2008-03-11 12:47:12 +00:00
Gonzalo Paniagua Javier 2334eaa559 2006-10-04 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: workaround for a weird case. Someone is watching
	/dev with recursion enabled and the inotify file descriptor shows up
	as a directory that fails to open. Already reported to Robert Love.


svn path=/trunk/mcs/; revision=66273
2006-10-04 22:02:15 +00:00
Gonzalo Paniagua Javier be40c48e05 2006-09-05 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: fix file names for the rename event.
	* FileSystemWatcher.cs: ignore exceptions that happen when invoking
	event handlers.


svn path=/trunk/mcs/; revision=64950
2006-09-05 15:38:06 +00:00
Gonzalo Paniagua Javier 249c9d5bcb 2006-08-21 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: handle CloseWrite, as it might happen without other
	modify events.


svn path=/trunk/mcs/; revision=64170
2006-08-21 23:32:38 +00:00
Gonzalo Paniagua Javier 532325d1c2 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
* InotifyWatcher.cs: warn about inotify user watches limit.


svn path=/trunk/mcs/; revision=63309
2006-08-03 16:51:11 +00:00
Gonzalo Paniagua Javier 631ced8da2 2006-07-25 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: remove unused method.
	* InotifyWatcher.cs: new watcher supporting inotify directly, as there
	are some distros that do not install 'gamin' anymore. This new watcher
	takes priority over gamin, fam and default.
	* FileSystemWatcher.cs: support for the new watcher.


svn path=/trunk/mcs/; revision=62972
2006-07-25 21:21:33 +00:00