delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=QNgVrPR/hZ2yU90gl/lJnTx/46GH2EAcr47TUbK6Ya5kItDkosdRp | |
raMpYUSVBHqCNuDopwcthozPX7TemeXh3M8Ag2QuzTpWOfcG4qE8o1XW3s3dmQLv | |
Y2fcxPYvNjPOyhVCgXkh3KMOzdCIY1NJcwK1FRRxc6Hce9rFq/RPUI= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=OtgSbNFMHZ0DPcieDTf9JoLX4Uc=; b=KyFXPcnNi71eM30Gw0Ur06Ss10PI | |
UmIKXljD2qmTZjjRqR2CQYVxFtcboQyG0T8YFkCekSVbvxR8eLO9HWaLV0NELoWr | |
dzMdsJGPU7CCOo0LK3dwlH4YWQ0DfNh4GEctlt7Qv6x05htcXmf5JGVwRCGhnpdV | |
KuTcxpW7PUgFGQo= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Mon, 16 Dec 2013 10:56:23 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: semget() API fails when run from CMD.exe but works from SH.exe |
Message-ID: | <20131216095623.GJ9487@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <015701cef8cc$fb2f7010$f18e5030$@lbmsys.com> |
MIME-Version: | 1.0 |
In-Reply-To: | <015701cef8cc$fb2f7010$f18e5030$@lbmsys.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
--OX7PPUk8qMPP4++R Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 14 08:04, Steven Bardwell wrote: > I would like my Cygwin programs to work from a DOS (CMD.exe) window, but I > am > having problems with some API calls. Here is a simple program that tries = to > create > a semaphore =C2=96 it works fine when it is run from sh.exe (or in a mint= ty > window), but > it crashes when run in a DOS window. (The Cygwin service is running.) >=20 > Is there a way to make it work in both environments? That's not the intention of the IPC calls. They usually only work if you set up a matching environment. XSI IPC requires cygserver to run. The XSI IPC structures are only kept in memory and "something" has to keep them around and coordinate their rather complex mechanics. If cygserver isn't running, the XSI IPC calls return ENOSYS. If you need persistent semaphores, message queues or shared memory, consider switching to POSIX IPC (sem_open, mq_open, shm_open and friends). They are backed by the filesystem, namely the Cygwin directories /dev/mqueue and /dev/shm. This makes them easier to work with from a DOS shell. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --OX7PPUk8qMPP4++R Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBAgAGBQJSrs5HAAoJEPU2Bp2uRE+gzcYP/3uzbRacu4OdLUTTueVf2+40 CBwcy/GiqWPwGRpH5em969D/EQUOM8qt1tAw+86VlkX9gZoHB7cheiOTDKWe6+Ds WQFGEdBAzFsnDJ7ZoIJGZlWuBSdswRVWV00/N1fpFM0JsxyyxSuvNDLOgBe0+Jw8 +K0O9yM9M6RzjXdr9Ow1mC/7TPSTT05MMkQZKk1d5tki4IfbsfOwmqf3hdMj1wl5 gg0O6FYQHAxiEGV5UcCPohBbvaVvrYEdYq8daSUdmWVIFtsnlWjZ+Ka6dGq+pSE3 lzXdANkMfLImPFMZHZtxWjI2EDb079atpv3AaHe2PAlYgU/fXRrnZNYc7elCjDfU 6N0lPEdDBI35dCTM4btHB5jCK3vAgaPm2TBx7RGToAX2UdcmQcU4yN/nbmqm704P fuog3xtHHd/d4LbofMwfJhFxbU9cmE2atlKsbfXkpOJhg/pOuacOyqtLsa9dEjt8 HnIlK+iHXFwmJk/DFgYB865YpAb5QhgXP7AkEnzShqa2/YIoXOZULXEK+KAFVESr hR11Z1thtmmj51AqJvnxn9bAGoyZa4pS5HK/IqYIcYyehZSuvadpjQMkqRxkimgx lKU2DT3NWrSCYcFpFUDH01nUN5VyV5aljG8fEKoyrUdGlh33b8+nYGKYBQk8x7Mq 2NlWDJs8/bvdRWrEUPbK =8uMF -----END PGP SIGNATURE----- --OX7PPUk8qMPP4++R--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |