[Patches] [ python-Patches-533681 ] Apply semaphore code to Cygwin
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 22 Mar 2002 12:03:56 -0800
Patches item #533681, was opened at 2002-03-22 18:20
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533681&group_id=5470
Category: Core (C code)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerald S. Williams (gsw_agere)
Assigned to: Nobody/Anonymous (nobody)
Summary: Apply semaphore code to Cygwin
Initial Comment:
The current version of Cygwin does not define
_POSIX_SEMAPHORES by default, although requires the
new semaphore interface since its condition variables
interface contains a race condition.
This patch simply specifies that semaphores should be
used if _POSIX_SEMAPHORES OR __CYGWIN__ is defined.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-03-22 21:03
Message:
Logged In: YES
user_id=21627
-1. Cygwin really ought to define _POSIX_SEMAPHORES if they
support them, so if they support them and don't define the
feature test macro, it is a Cygwin bug. Work-arounds around
platform bugs are generally discourgaged in Python.
On python-dev, you indicate that _POSIX_SEMPAPHORES is only
defined if __rtems__ is also defined. What is the rationale
for that?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=533681&group_id=5470