Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62eda4d

Browse files
committed
Merged revisions 76815 via svnmerge from
svn+ssh://[email protected]/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://[email protected]/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. ........ ................
1 parent f3f9e82 commit 62eda4d

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

configure

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# From configure.in Revision: 76406 .
2+
# From configure.in Revision: 76567 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.61 for python 3.1.
55
#
@@ -22564,6 +22564,7 @@ int main(void) {
2256422564
return 1;
2256522565
}
2256622566
sem_close(a);
22567+
sem_unlink("/autoconf");
2256722568
return 0;
2256822569
}
2256922570

@@ -22639,7 +22640,7 @@ cat >>conftest.$ac_ext <<_ACEOF
2263922640
#include <sys/stat.h>
2264022641

2264122642
int main(void){
22642-
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22643+
sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
2264322644
int count;
2264422645
int res;
2264522646
if(a==SEM_FAILED){
@@ -22649,6 +22650,7 @@ int main(void){
2264922650
}
2265022651
res = sem_getvalue(a, &count);
2265122652
sem_close(a);
22653+
sem_unlink("/autocftw");
2265222654
return res==-1 ? 1 : 0;
2265322655
}
2265422656

configure.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3359,6 +3359,7 @@ int main(void) {
33593359
return 1;
33603360
}
33613361
sem_close(a);
3362+
sem_unlink("/autoconf");
33623363
return 0;
33633364
}
33643365
], ac_cv_posix_semaphores_enabled=yes,
@@ -3382,7 +3383,7 @@ AC_TRY_RUN([
33823383
#include <sys/stat.h>
33833384

33843385
int main(void){
3385-
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
3386+
sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
33863387
int count;
33873388
int res;
33883389
if(a==SEM_FAILED){
@@ -3392,6 +3393,7 @@ int main(void){
33923393
}
33933394
res = sem_getvalue(a, &count);
33943395
sem_close(a);
3396+
sem_unlink("/autocftw");
33953397
return res==-1 ? 1 : 0;
33963398
}
33973399
]

0 commit comments

Comments
 (0)