mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
First test of Darwin port with POSIX semaphore code.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.1 2002/05/05 00:03:28 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/posix_sema.c,v 1.2 2002/05/05 01:03:26 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "miscadmin.h"
|
||||
#include "storage/ipc.h"
|
||||
#include "storage/pg_sema.h"
|
||||
|
||||
|
||||
@@ -70,7 +72,7 @@ PosixSemaphoreCreate(void)
|
||||
|
||||
mySem = sem_open(semname, O_CREAT | O_EXCL,
|
||||
(mode_t) IPCProtection, (unsigned) 1);
|
||||
if (mySem != SEM_FAILED)
|
||||
if (mySem != (sem_t *) SEM_FAILED)
|
||||
break;
|
||||
|
||||
/* Loop if error indicates a collision */
|
||||
|
Reference in New Issue
Block a user