public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf@cygnus.com>
To: jmm@raleigh.ibm.com, John Mullee <john@exmachina.net>
Cc: gnu-win32@cygnus.com
Subject: Re: pid problem found
Date: Mon, 08 Feb 1999 06:40:00 -0000	[thread overview]
Message-ID: <19990208093853.A24123@cygnus.com> (raw)
In-Reply-To: < 199902081430.JAA25094@jmm.raleigh.ibm.com >; from jmm@raleigh.ibm.com on Mon, Feb 08, 1999 at 09:30:55AM -0500

On Mon, Feb 08, 1999 at 09:30:55AM -0500, jmm@raleigh.ibm.com wrote:
>> Would it be possible that this 'pid' is something other
>> than that id seen in taskmanager? does cygwin's
>> waitpid use the CreateProcess-pid? or something else?
>
>That was it, as it turns out... CreateProcess returns a Windows pid,
>not a cygwin pid, so cygwin1.dll's waitpid couldn't use it...
>
>Unfortunately, I was using CreateProcess to do anonymous pipe inheritance
>so each of the children could feed back an integer after getting a
>SIGALRM and exit.
>
>What this means now is that I'm stuck either converting the signal(),
>alarm(), and waitpid() stuff to Win32 calls (events I guess) or trying
>to dump all the anon pipe stuff in favor of some other IPC mechanism
>(most likely moving to the Win32 event stuff, I'd guess, though all the
>examples that I've seen do explicit checks for incoming messages in the
>code and not something as simple as installing a handler to print one
>integer and exit.

Umm.  Cygwin supports anonymous pipes.  Think UNIX.  That's what we're
trying to emulate.

cgf

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Christopher Faylor <cgf@cygnus.com>
To: jmm@raleigh.ibm.com, John Mullee <john@exmachina.net>
Cc: gnu-win32@cygnus.com
Subject: Re: pid problem found
Date: Sun, 28 Feb 1999 23:02:00 -0000	[thread overview]
Message-ID: <19990208093853.A24123@cygnus.com> (raw)
Message-ID: <19990228230200.1iEu2mLau5wa_H2L_QD2SrAQNCO-xACHXg73YfJsojw@z> (raw)
In-Reply-To: <199902081430.JAA25094@jmm.raleigh.ibm.com>

On Mon, Feb 08, 1999 at 09:30:55AM -0500, jmm@raleigh.ibm.com wrote:
>> Would it be possible that this 'pid' is something other
>> than that id seen in taskmanager? does cygwin's
>> waitpid use the CreateProcess-pid? or something else?
>
>That was it, as it turns out... CreateProcess returns a Windows pid,
>not a cygwin pid, so cygwin1.dll's waitpid couldn't use it...
>
>Unfortunately, I was using CreateProcess to do anonymous pipe inheritance
>so each of the children could feed back an integer after getting a
>SIGALRM and exit.
>
>What this means now is that I'm stuck either converting the signal(),
>alarm(), and waitpid() stuff to Win32 calls (events I guess) or trying
>to dump all the anon pipe stuff in favor of some other IPC mechanism
>(most likely moving to the Win32 event stuff, I'd guess, though all the
>examples that I've seen do explicit checks for incoming messages in the
>code and not something as simple as installing a handler to print one
>integer and exit.

Umm.  Cygwin supports anonymous pipes.  Think UNIX.  That's what we're
trying to emulate.

cgf

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


  parent reply	other threads:[~1999-02-08  6:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-07 19:27 jmm
     [not found] ` < 199902080327.WAA24699@jmm.raleigh.ibm.com >
1999-02-07 20:09   ` Christopher Faylor
1999-02-28 23:02     ` Christopher Faylor
1999-02-08  6:22 ` John Mullee
     [not found]   ` < 36BEF2B3.4A3B0C4C@exmachina.net >
1999-02-08  6:31     ` jmm
     [not found]       ` < 199902081430.JAA25094@jmm.raleigh.ibm.com >
1999-02-08  6:40         ` Christopher Faylor [this message]
     [not found]           ` < 19990208093853.A24123@cygnus.com >
1999-02-08  6:43             ` jmm
     [not found]               ` < 199902081443.JAA25182@jmm.raleigh.ibm.com >
1999-02-08  6:48                 ` Christopher Faylor
     [not found]                   ` < 19990208094644.A24171@cygnus.com >
1999-02-08  6:59                     ` jmm
     [not found]                       ` < 199902081459.JAA25236@jmm.raleigh.ibm.com >
1999-02-08  7:06                         ` Christopher Faylor
1999-02-28 23:02                           ` Christopher Faylor
1999-02-28 23:02                       ` jmm
1999-02-28 23:02                   ` Christopher Faylor
1999-02-28 23:02               ` jmm
1999-02-28 23:02           ` Christopher Faylor
1999-02-08  6:47       ` John Mullee
1999-02-28 23:02         ` John Mullee
1999-02-28 23:02       ` jmm
1999-02-28 23:02   ` John Mullee
1999-02-28 23:02 ` jmm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19990208093853.A24123@cygnus.com \
    --to=cgf@cygnus.com \
    --cc=gnu-win32@cygnus.com \
    --cc=jmm@raleigh.ibm.com \
    --cc=john@exmachina.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).