[darwinbuild-changes] [930] branches/PR-8817822
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 8 12:16:31 PST 2011
Revision: 930
http://trac.macosforge.org/projects/darwinbuild/changeset/930
Author: wsiegrist at apple.com
Date: 2011-02-08 12:16:29 -0800 (Tue, 08 Feb 2011)
Log Message:
-----------
Explicitly set stop fd
Modified Paths:
--------------
branches/PR-8817822/darwintrace/darwintrace.c
branches/PR-8817822/testing/darwintrace/close-test
Modified: branches/PR-8817822/darwintrace/darwintrace.c
===================================================================
--- branches/PR-8817822/darwintrace/darwintrace.c 2011-02-08 20:07:22 UTC (rev 929)
+++ branches/PR-8817822/darwintrace/darwintrace.c 2011-02-08 20:16:29 UTC (rev 930)
@@ -45,7 +45,8 @@
#define DARWINTRACE_LOG_FULL_PATH 1
#define DARWINTRACE_DEBUG_OUTPUT 0
-#define DARWINTRACE_START_FD 81
+#define DARWINTRACE_START_FD 101
+#define DARWINTRACE_STOP_FD 200
#define DARWINTRACE_BUFFER_SIZE 1024
#if DARWINTRACE_DEBUG_OUTPUT
@@ -132,7 +133,7 @@
O_CREAT | O_WRONLY | O_APPEND,
DEFFILEMODE);
int newfd;
- for(newfd = DARWINTRACE_START_FD; newfd < DARWINTRACE_START_FD + 21; newfd++) {
+ for(newfd = DARWINTRACE_START_FD; newfd < DARWINTRACE_STOP_FD; newfd++) {
if(-1 == write(newfd, "", 0) && errno == EBADF) {
if(-1 != dup2(fd, newfd)) darwintrace_fd = newfd;
close(fd);
Modified: branches/PR-8817822/testing/darwintrace/close-test
===================================================================
--- branches/PR-8817822/testing/darwintrace/close-test 2011-02-08 20:07:22 UTC (rev 929)
+++ branches/PR-8817822/testing/darwintrace/close-test 2011-02-08 20:16:29 UTC (rev 930)
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import os
-for i in range(81,102):
+for i in range(101,200):
print " ... trying to close(%s)" % i
try:
os.close(i)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20110208/94d74f17/attachment.html>
More information about the darwinbuild-changes
mailing list