From: Robert W. <ro...@us...> - 2004-05-11 15:38:20
|
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24250/conformance/interfaces/sem_post Modified Files: 8-1.c Log Message: Applied patch from Ulrich Drepper. Index: 8-1.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/8-1.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 8-1.c 4 May 2004 02:37:22 -0000 1.1 --- 8-1.c 11 May 2004 15:38:10 -0000 1.2 *************** *** 130,133 **** --- 130,134 ---- if( sem_1 == SEM_FAILED || sem_1 == NULL ) { perror(ERROR_PREFIX "sem_open: sem_1"); + sem_unlink (semname); return PTS_UNRESOLVED; } *************** *** 135,139 **** /* The parent has highest priority */ priority = sched_get_priority_min(SCHED_FIFO) + 3; ! set_my_prio(priority); /* Lock Semaphore */ --- 136,144 ---- /* The parent has highest priority */ priority = sched_get_priority_min(SCHED_FIFO) + 3; ! if (set_my_prio(priority) == -1) { ! sem_unlink (semname); ! sem_unlink (semname_1); ! return PTS_UNRESOLVED; ! } /* Lock Semaphore */ |