summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-13 21:06:06 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-12-13 21:06:06 +0000
commitf2044eda4ef189d1aac98c795ae69f96bd4e4ef7 (patch)
tree5f60b6423159e13ad06fc7e8817055fd641d4e6f /configure
parente334c7a7d80d4d2fd562a4daf1d5876e50e9b9f2 (diff)
downloadcpython-f2044eda4ef189d1aac98c795ae69f96bd4e4ef7.tar.gz
Issue #7492: Autoconf tests were leaving semaphore files behind. Add
sem_unlink calls to delete those semaphore files.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 8a110eddf8..7ef3db990a 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 76636 .
+# From configure.in Revision: 76644 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
@@ -24474,6 +24474,7 @@ int main(void) {
return 1;
}
sem_close(a);
+ sem_unlink("/autoconf");
return 0;
}
@@ -24548,7 +24549,7 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <sys/stat.h>
int main(void){
- sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
+ sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
int count;
int res;
if(a==SEM_FAILED){
@@ -24558,6 +24559,7 @@ int main(void){
}
res = sem_getvalue(a, &count);
sem_close(a);
+ sem_unlink("/autocftw");
return res==-1 ? 1 : 0;
}