|
From: <sv...@va...> - 2009-06-26 04:35:57
|
Author: njn
Date: 2009-06-26 05:35:51 +0100 (Fri, 26 Jun 2009)
New Revision: 10379
Log:
An fd in the Darwin launcher wasn't being closed.
Modified:
trunk/coregrind/launcher-darwin.c
Modified: trunk/coregrind/launcher-darwin.c
===================================================================
--- trunk/coregrind/launcher-darwin.c 2009-06-25 23:46:23 UTC (rev 10378)
+++ trunk/coregrind/launcher-darwin.c 2009-06-26 04:35:51 UTC (rev 10379)
@@ -148,9 +148,9 @@
barf("%s: %s", clientname, strerror(errno));
}
- bytes = pread(fd, buf, sizeof(buf), 0);
+ bytes = read(fd, buf, sizeof(buf));
+ close(fd);
if (bytes != sizeof(buf)) {
- close(fd);
return NULL;
}
|