Commit Graph
63 Commits
Author SHA1 Message Date
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
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Atsushi Eno 1b9cbdb49e 2004-05-09 Atsushi Enomoto <[email protected]>
* FileSystemWatcher.cs : csc build fix. Duplicate name between class
	  field and local variable. (already filed in bugzilla #47991).

svn path=/trunk/mcs/; revision=26997
2004-05-09 17:10:32 +00:00
Gonzalo Paniagua Javier fec76c733b 2004-05-09 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs:
	* FAMWatcher.cs: use MangledFilter instead of Filter.

	* FileSystemWatcher.cs: added MangledFilter and finalizer.

	* SearchPattern.cs: fixed the case when the pattern is "*".

svn path=/trunk/mcs/; revision=26978
2004-05-09 03:31:54 +00:00
Gonzalo Paniagua Javier 43bfd6c50f 2004-03-30 Gonzalo Paniagua Javier <[email protected]>
* FAMWatcher.cs: support monitoring subdirectories. FAM doesn't do that,
	so we have to register the existing directories and add the new ones
	that might be created.

	* SearchPattern.cs: provide the pattern when it's wrong.

svn path=/trunk/mcs/; revision=24781
2004-03-30 12:26:18 +00:00
Gonzalo Paniagua Javier f5a5e15e0e 2004-03-25 Gonzalo Paniagua Javier <[email protected]>
* SearchPattern.cs: small improvement for files with no wildcard.

svn path=/trunk/mcs/; revision=24623
2004-03-25 23:52:50 +00:00
Nick Drochak cf5ff95d1b 2004-01-27 Nick Drochak <[email protected]>
* FAMWatcher.cs:
	* FileSystemWatcher.cs: Remove unused variables. Eliminates a couple of
	build warnings.

svn path=/trunk/mcs/; revision=22536
2004-01-27 14:00:08 +00:00
Gonzalo Paniagua Javier 5c450c3eec 2004-01-26 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: fixed condition for removal from the watches list.

svn path=/trunk/mcs/; revision=22513
2004-01-26 19:38:55 +00:00
Gonzalo Paniagua Javier 3e4be0adb1 2004-01-26 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: check if the FileSystemWatcher is in WaitForChange
	and call Monitor.PulseAll in that case.

svn path=/trunk/mcs/; revision=22497
2004-01-26 15:19:12 +00:00
Gonzalo Paniagua Javier 48dbe8fba3 MONO_MANAGED_WATCHER
svn path=/trunk/mcs/; revision=22368
2004-01-22 01:38:13 +00:00
Gonzalo Paniagua Javier 529f2815d7 2004-01-21 Gonzalo Paniagua Javier <[email protected]>
* DefaultWatcher.cs: implemented.
	* FAMWatcher.cs: don't stop the thread when we add a new watch.
	* FileSystemWatcher.cs: on windows we use the default watcher by now.

svn path=/trunk/mcs/; revision=22362
2004-01-21 21:54:45 +00:00
Gonzalo Paniagua Javier dbea39aa46 2004-01-16 Gonzalo Paniagua Javier <[email protected]>
* System.dll.sources: added new files.

	* System_test.dll.sources: added new test.

	* System.IO/DefaultWatcher.cs: stub for the default watcher.
	* System.IO/WindowsWatcher.cs: stub for the windows watcher.

	* System.IO/FAMWatcher.cs: FAM watcher.

	* System.IO/FileAction.cs: enum with event types.

	* System.IO/FileSystemEventArgs.cs: added SetName property.
	* System.IO/FileSystemWatcher.cs: added support for the 3 watchers.

	* System.IO/IFileWatcher.cs: interface implemented by the watchers.
	* System.IO/SearchPattern.cs: copied from corlib.
	* Test/System.IO/FileSystemWatcherTest.cs: new test.

svn path=/trunk/mcs/; revision=22139
2004-01-16 03:27:24 +00:00