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

Skip to content

Commit ba79b35

Browse files
committed
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 b5314c6 commit ba79b35

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: 76645 .
2+
# From configure.in Revision: 76779 .
33
# Guess values for system-dependent variables and create Makefiles.
44
# Generated by GNU Autoconf 2.61 for python 3.2.
55
#
@@ -23782,6 +23782,7 @@ int main(void) {
2378223782
return 1;
2378323783
}
2378423784
sem_close(a);
23785+
sem_unlink("/autoconf");
2378523786
return 0;
2378623787
}
2378723788

@@ -23856,7 +23857,7 @@ cat >>conftest.$ac_ext <<_ACEOF
2385623857
#include <sys/stat.h>
2385723858

2385823859
int main(void){
23859-
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23860+
sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
2386023861
int count;
2386123862
int res;
2386223863
if(a==SEM_FAILED){
@@ -23866,6 +23867,7 @@ int main(void){
2386623867
}
2386723868
res = sem_getvalue(a, &count);
2386823869
sem_close(a);
23870+
sem_unlink("/autocftw");
2386923871
return res==-1 ? 1 : 0;
2387023872
}
2387123873

configure.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3324,6 +3324,7 @@ int main(void) {
33243324
return 1;
33253325
}
33263326
sem_close(a);
3327+
sem_unlink("/autoconf");
33273328
return 0;
33283329
}
33293330
], ac_cv_posix_semaphores_enabled=yes,
@@ -3348,7 +3349,7 @@ AC_TRY_RUN([
33483349
#include <sys/stat.h>
33493350

33503351
int main(void){
3351-
sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
3352+
sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
33523353
int count;
33533354
int res;
33543355
if(a==SEM_FAILED){
@@ -3358,6 +3359,7 @@ int main(void){
33583359
}
33593360
res = sem_getvalue(a, &count);
33603361
sem_close(a);
3362+
sem_unlink("/autocftw");
33613363
return res==-1 ? 1 : 0;
33623364
}
33633365
], ac_cv_broken_sem_getvalue=no,

0 commit comments

Comments
 (0)