diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-12-13 21:18:16 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-12-13 21:18:16 (GMT) |
commit | 62eda4d0c47775919e2c88b81a1f4b39cf604d94 (patch) | |
tree | 35a7bc9b04ad340f1671d1cf801b9a439a54bc89 /configure.in | |
parent | f3f9e822074e977d889a277abd6e4a62d45462b9 (diff) | |
download | cpython-62eda4d0c47775919e2c88b81a1f4b39cf604d94.zip cpython-62eda4d0c47775919e2c88b81a1f4b39cf604d94.tar.gz cpython-62eda4d0c47775919e2c88b81a1f4b39cf604d94.tar.bz2 |
Merged revisions 76815 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r76815 | mark.dickinson | 2009-12-13 21:10:57 +0000 (Sun, 13 Dec 2009) | 10 lines
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.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 09714d5..67f3be6 100644 --- a/configure.in +++ b/configure.in @@ -3359,6 +3359,7 @@ int main(void) { return 1; } sem_close(a); + sem_unlink("/autoconf"); return 0; } ], ac_cv_posix_semaphores_enabled=yes, @@ -3382,7 +3383,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){ @@ -3392,6 +3393,7 @@ int main(void){ } res = sem_getvalue(a, &count); sem_close(a); + sem_unlink("/autocftw"); return res==-1 ? 1 : 0; } ] |