Commit Graph
74 Commits
Author SHA1 Message Date
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
Marek Habersack 21c73210aa 2009-01-26 Marek Habersack <[email protected]>
* SearchPattern.cs: make IsMatch work for situations when there is
	no wildcard in the pattern, but a subdirectory match is being
	tested, e.g. pattern == "file.txt" and text ==
	"subdir/file.txt". Lack of support for this has been causing
	watching for changes to ASP.NET's web.config in subdirectories to
	fail.

svn path=/trunk/mcs/; revision=124491
2009-01-26 13:26:21 +00:00
Jonathan Chambers 84ec87d71b 2008-11-06 Jonathan Chambers <[email protected]>
* MonoIO.cs : Add DuplicateHandle.

2008-11-06  Jonathan Chambers  <[email protected]>

        * Process.cs : Use DuplicateHandle when redirecting
        StdInput and StdOutput. Fixes bug #436291.



svn path=/trunk/mcs/; revision=118134
2008-11-06 18:48:08 +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
Marek Habersack 72103eca65 2008-04-17 Marek Habersack <[email protected]>
* FileSystemWatcher.cs: added support for NullFileWatcher. Fixes
	bug #354701

	* NullFileWatcher.cs: added an IFileWatcher implementation which
	does nothing. Selected only by setting the MONO_MANAGED_WATCHER
	environment variable to 'disabled'. Fixes bug #354701

svn path=/trunk/mcs/; revision=100953
2008-04-16 22:31:33 +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
Sebastien Pouliot 9ca8585525 2007-11-06 Sebastien Pouliot <[email protected]>
* InvalidDataException.cs: Added private ctor for serialization. Fix 
	bug #324569.


svn path=/trunk/mcs/; revision=89018
2007-11-06 18:44:06 +00:00
Miguel de Icaza f26538eb5f Remove unnecessary TODOs, NIEX
svn path=/trunk/mcs/; revision=88689
2007-11-01 21:42:58 +00:00
Robert Jordan 535abaefa2 In Test/System.Diagnostics:
2007-10-30  Robert Jordan  <[email protected]>

	* ProcessTest.cs: Add tests for bug #319829.

In System.Diagnostics:
2007-10-30  Robert Jordan  <[email protected]>

	* Process.cs: Wrap the redirected streams with a stream
	that provides real async Begin/Read|Write operations.
	Fixes bug #319829.

In System.IO:
2007-10-30  Robert Jordan  <[email protected]>

	* MonoSyncFileStream.cs: Add.


svn path=/trunk/mcs/; revision=88491
2007-10-30 18:35:42 +00:00
Juraj Skripsky c616e7e11b 2007-07-19 Juraj Skripsky <[email protected]>
* FileSystemWatcher.ch (RaiseEvent): Invoke delegate directly, we don't
	need the extra control provided by using GetInvocationList().



svn path=/trunk/mcs/; revision=82295
2007-07-19 15:56:49 +00:00
Sebastien Pouliot 71e6b1a839 2006-11-01 Sebastien Pouliot <[email protected]>
* ErrorEventHandler.cs: Remove [Serializable] in NET_2_0.
	* FileSystemEventHandler.cs: Remove [Serializable] in NET_2_0.
	* FileSystemWatcher.cs: Add missing attributes for NET_2_0.
	* InvalidDataException.cs: Seal class and remove serialization ctor.
	* NotifyFilters.cs: Remove [Serializable] in NET_2_0.
	* RenamedEventHandler.cs: Remove [Serializable] in NET_2_0.
	* WatcherChangeTypes.cs: Remove [Serializable] in NET_2_0.


svn path=/trunk/mcs/; revision=67219
2006-11-01 14:20:11 +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 a25ada1d51 2006-08-16 Gonzalo Paniagua Javier <[email protected]>
* FileSystemWatcher.cs: avoid argument null when we don't know yet the
	target of a rename.


svn path=/trunk/mcs/; revision=63858
2006-08-16 23:02:44 +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
Sebastien Pouliot f89c00adf4 2005-07-31 Sebastien Pouliot <[email protected]>
* FileSystemWatcher.cs: Add an EnvironmentPermission assert to read
	environment variable MONO_MANAGED_WATCHER.


svn path=/trunk/mcs/; revision=63177
2006-07-31 13:15:09 +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
Gonzalo Paniagua Javier 3790aca1cf 2006-04-10 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: fix race condition when a directory is created and
	populated before we start monitoring it. Patch by Thong Nguyen.


svn path=/trunk/mcs/; revision=59322
2006-04-10 21:21:22 +00:00
Gonzalo Paniagua Javier f6c687f907 bug #
svn path=/trunk/mcs/; revision=59149
2006-04-06 22:19:11 +00:00
Gonzalo Paniagua Javier 4b940b084f 2006-04-06 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: add new directories to the hashtable after start
	monitoring them, otherwise the ReqNum is not set. Fixes bug #78029.


svn path=/trunk/mcs/; revision=59147
2006-04-06 22:16:48 +00:00
Gonzalo Paniagua Javier c85a3c816a 2006-01-05 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: fix arraylist access when a new directory is added and
	the new directory is watched too. Closes bug #77068.


svn path=/trunk/mcs/; revision=55093
2006-01-05 10:24:55 +00:00
Gonzalo Paniagua Javier 849c9d5112 2005-12-01 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: 
	* FileSystemWatcher.cs: use libgamin-1.so.0 instead of libfam.so.0 when
	the runtime finds libgamin. On SUSE libgamin and libfam are not the same
	libraries (on debian, they are just the same and there's no fam-server).


svn path=/trunk/mcs/; revision=53782
2005-12-01 18:50:22 +00:00
Chris Toshok 29f95a7d23 2005-09-19 Chris Toshok <[email protected]>
* System.Configuration/ProviderBase.cs: nuke this - it's in
	System.Configuration.Provider.

	* System/InvalidDataException.cs: move this to System.IO, where it
	belongs.
	
	* System.dll.sources: track movement of InvalidDataException.cs
	and removal of ProviderBase.cs


svn path=/trunk/mcs/; revision=50253
2005-09-19 18:49:09 +00:00
Ben Maurer 41aca6c276 Gonzalito from Ben's computer
svn path=/trunk/mcs/; revision=47130
2005-07-09 00:52:25 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Gonzalo Paniagua Javier 157df963d5 2005-06-25 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: make this really inactive when there are no events to
	process.


svn path=/trunk/mcs/; revision=46505
2005-06-25 19:57:39 +00:00
Gonzalo Paniagua Javier bea2c4b94f 2005-05-28 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: move the call to StartMonitoringDirectory out of any
	locks. Before, for a high amount of subdirectories (~500) it hanged
	after filling the write buffer of FAM socket. Fixes bug #74398.


svn path=/trunk/mcs/; revision=45131
2005-05-28 07:39:26 +00:00
Ben Maurer dd19011aa6 locking fixes
svn path=/trunk/mcs/; revision=45088
2005-05-26 23:18:18 +00:00
Gonzalo Paniagua Javier 1d9c9e2441 Fix warnings
svn path=/trunk/mcs/; revision=43368
2005-04-21 00:47:25 +00:00
Lluis Sanchez 1f2fd5ea5e 2005-04-05 Lluis Sanchez Gual <[email protected]>
* FAMWatcher.cs: Fix cast exception when disposing watchers.


svn path=/trunk/mcs/; revision=42568
2005-04-05 14:12:22 +00:00
Geoff Norton 4013a9bd29 2005-03-30 Geoff Norton <[email protected]>
* KeventWatcher.cs: Fix a file handle leak on raised events.



svn path=/trunk/mcs/; revision=42379
2005-03-30 18:11:49 +00:00
Lluis Sanchez 1f9b754376 2005-02-10 Lluis Sanchez Gual <[email protected]>
* DefaultWatcher.cs: Fix nullref exception when the object is disposed
	without any watcher.


svn path=/trunk/mcs/; revision=40383
2005-02-10 09:51:52 +00:00
Geoff Norton d34ac1e265 Move these changelog entries where they belong
svn path=/trunk/mcs/; revision=37634
2004-12-11 08:05:13 +00:00
Geoff Norton 26fc7d31e4 2004-12-03 Geoff Norton <[email protected]>
* System.IO/SearchPattern.cs:  Have IsMatch(string)
        call IsMatch(string, bool) to avoid setting a instance variable in a
        method that logically should not be changing it.


svn path=/trunk/mcs/; revision=37032
2004-12-03 16:11:54 +00:00
Geoff Norton 334f21d96f 2004-12-02 Geoff Norton <[email protected]>
* System.IO/KeventWatcher.cs: Add IDisposable to our kevent struct
        so the disposer gets called.  Fixes a small memory leak.  Dont monitor
        LastAccessedTime for changed files, as this will cause AppUnloading in XSP
        when global.asax is accessed after creation.  Use a case-insensitive IsMatch        to deal with OSX Case-aware/Case-insensitive filesystem.
        * System.IO/SearchPattern.cs: Add a overload to IsMatch to explicitly set
        the ignore field for OSX case-aware yet case-insensitive filesystem.  This
        allows monitoring of global.asax to happen properly.




svn path=/trunk/mcs/; revision=36977
2004-12-02 22:19:49 +00:00
Gonzalo Paniagua Javier fa2c6eb43c 2004-11-29 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: make it work when the FileMask does not have
	wildcards and we're watching a directory.


svn path=/trunk/mcs/; revision=36786
2004-11-29 19:03:29 +00:00
Ben Maurer e12984f828 2004-11-22 Ben Maurer <[email protected]>
* DefaultWatcher.cs: Copy the hashtable when we scan for changes
	so that you can make modifications in a handler. Fixes 65966.


svn path=/trunk/mcs/; revision=36403
2004-11-22 22:21:00 +00:00
Geoff Norton cc223f7cc0 2004-11-19 Geoff Norton <[email protected]>
* System.IO/KeventWatcher.cs:  Dont marshal a string to a struct
        that the kernel will hold; this causes a double free bug.  Marshal
        it as a IntPtr and clean it up in the dispose method.  Don't pass
        FullName to the pattern matcher, pass the filename.  Fixes bug #69692.


svn path=/trunk/mcs/; revision=36328
2004-11-19 18:14:19 +00:00
Gonzalo Paniagua Javier c995669093 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: if the file is removed between reading the
	directory and filling the file info, catch the exception and ignore the
	file. Fixes bug #59482.

svn path=/trunk/mcs/; revision=34767
2004-10-07 00:44:12 +00:00
Gonzalo Paniagua Javier 0556ad0e07 2004-10-07 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: don't use Directory.GetFileSystemEntries when the
	pattern has no wildcards. Fixes bug #67447.

svn path=/trunk/mcs/; revision=34765
2004-10-07 00:29:30 +00:00
Gonzalo Paniagua Javier 59fcd53a48 2004-09-04 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: s/fam/libfam.so.0/ so that g_module finds it even
	when the development package is not installed.

svn path=/trunk/mcs/; revision=33329
2004-09-04 05:58:45 +00:00
Geoff Norton 2ede344b8f Patch for bug #62532 implemention of a kqueue/kevent based FileSystemWatcher.
svn path=/trunk/mcs/; revision=32002
2004-08-06 21:42:00 +00:00
Gonzalo Paniagua Javier f04f14f3a7 2004-06-24 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: fixed subdirectories notifications and don't
	fail when any directory is removed. Closes bug #59840.

svn path=/trunk/mcs/; revision=30313
2004-06-24 14:22:29 +00:00