summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-13 21:10:57 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-13 21:10:57 (GMT)
commitba79b35772ab36b3cde0d85c4ec3d1902f47bb79 (patch)
tree7560f4a2515a2793e5ade86b808373440d3c60b4 /configure.in
parentb5314c6583b0500f09c54693ea37d7a7f89c2bdf (diff)
downloadcpython-ba79b35772ab36b3cde0d85c4ec3d1902f47bb79.zip
cpython-ba79b35772ab36b3cde0d85c4ec3d1902f47bb79.tar.gz
cpython-ba79b35772ab36b3cde0d85c4ec3d1902f47bb79.tar.bz2
Merged revisions 76813 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76813 | mark.dickinson | 2009-12-13 21:06:06 +0000 (Sun, 13 Dec 2009) | 3 lines Issue #7492: Autoconf tests were leaving semaphore files behind. Add sem_unlink calls to delete those semaphore files. ........
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 711856d..af1855e 100644
--- a/configure.in
+++ b/configure.in
@@ -3324,6 +3324,7 @@ int main(void) {
return 1;
}
sem_close(a);
+ sem_unlink("/autoconf");
return 0;
}
], ac_cv_posix_semaphores_enabled=yes,
@@ -3348,7 +3349,7 @@ AC_TRY_RUN([
#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){
@@ -3358,6 +3359,7 @@ int main(void){
}
res = sem_getvalue(a, &count);
sem_close(a);
+ sem_unlink("/autocftw");
return res==-1 ? 1 : 0;
}
], ac_cv_broken_sem_getvalue=no,