From aea8343bb8df891283b3c60c1dc42a08205fc4b7 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 8 Apr 2003 05:38:49 +0000
Subject: [PATCH] sopen_child_thread() needs to close fd.

---
 src/xpdev/wraptest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/wraptest.c b/src/xpdev/wraptest.c
index 570c32f80a..1b424e7e61 100644
--- a/src/xpdev/wraptest.c
+++ b/src/xpdev/wraptest.c
@@ -301,8 +301,8 @@ static void sopen_child_thread(void* arg)
 			printf("!FAILURE: was able to reopen in child thread\n");
 		else {
 			SLEEP(5000);
-			close(fd);
 		}
+		close(fd);
 	} else if(arg==0)
 		perror(LOCK_FNAME);
 }
\ No newline at end of file
-- 
GitLab