From 0459f95c95310bcd42d86f757c7dee5fb95043cd Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 17 Jun 2009 08:45:54 +0000 Subject: [PATCH] Remove bogus error log pointed out by Riccardo Mottola git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28356 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/win32/NSMessagePort.m | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8562620a3..03b7a2be9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-06-16 Richard Frith-Macdonald + + * Source/win32/NSMessagePort.m: Don't use NSLog() to report error + when writing to mailslot ... it's usually just that the remote + end has terminated, so invalidating the port silently is better. + 2009-06-13 Richard Frith-Macdonald * Headers/Foundation/NSKeyedArchiver.h: diff --git a/Source/win32/NSMessagePort.m b/Source/win32/NSMessagePort.m index ec70ac77f..69231d94f 100644 --- a/Source/win32/NSMessagePort.m +++ b/Source/win32/NSMessagePort.m @@ -872,7 +872,11 @@ again: } else if ((errno = GetLastError()) != ERROR_IO_PENDING) { - NSLog(@"unable to write to mailslot '%@' - %@", + /* This is probably an end of file + * eg. when the process at the other end has terminated. + */ + NSDebugMLog(@"NSMessagePort", + @"unable to write to mailslot '%@' - %@", this->name, [NSError _last]); [self invalidate]; }