Author: rfm
Date: Thu May 14 15:14:32 2015
New Revision: 38495
URL: http://svn.gna.org/viewcvs/gnustep?rev=38495&view=rev
Log:
Ignore exception if closing a closed file
Modified:
libs/ec/trunk/EcProcess.m
Modified: libs/ec/trunk/EcProcess.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=38495&r1=38494&r2=38495&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m (original)
+++ libs/ec/trunk/EcProcess.m Thu May 14 15:14:32 2015
@@ -1410,7 +1410,10 @@
* Ensure that all data is written to file.
*/
fflush(stderr);
- [hdl closeFile];
+ NS_DURING
+ [hdl closeFile];
+ NS_HANDLER
+ NS_HANDLER
/*
* If the file is empty, remove it, otherwise move to archive directory.
@@ -1518,7 +1521,10 @@
if (desc != 2)
{
dup2(desc, 2);
- [hdl closeFile];
+ NS_DURING
+ [hdl closeFile];
+ NS_HANDLER
+ NS_HANDLER
hdl = [NSFileHandle fileHandleWithStandardError];
}
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs