From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmm@raleigh.ibm.com To: cgf@cygnus.com (Christopher Faylor) Cc: gnu-win32@cygnus.com Subject: Re: pid problem found Date: Mon, 08 Feb 1999 06:59:00 -0000 Message-id: <199902081459.JAA25236@jmm.raleigh.ibm.com> In-reply-to: < 19990208094644.A24171@cygnus.com > from "Christopher Faylor" at Feb 8, 99 09:46:44 am References: <19990208094644.A24171@cygnus.com> X-SW-Source: 1999-02/msg00219.html > Somehow I still get the feeling that you're making this a lot more > complicated than is warranted. You're probably right, so let me throw out what I'm trying to do and get a knowledgable answer :) Program started out as just running and spawning x children, but run time was variable and we need to be able to either pass a "seconds to run" param or stop it with an event/signal (specifically, from a perl script that runs the parent process). When signaled, the children will need to feed back one integer (for loop index, kept as a global var in each child) and exit. Approach was going to be have perl kill -ALRM the parent, have it handle and cascade the ALRM to children, read the integers from the pipes that were inherited by the children, and print some stats. (each child would handle ALRM by printf'ing the int and exit'ing) The code has to eventually be able to compile and run on just MS VC++ (not my choice) w/o the cygwin dll, but I was hoping to use the cygwin stuff to just get it up and working and migrate over to pure Win32 after the fact (once the immediate need for something that works is done) Thanks again for all your help and patience, James Manning -- Hardware Design Engineer --- IBM Netfinity Performance Development -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmm@raleigh.ibm.com To: cgf@cygnus.com (Christopher Faylor) Cc: gnu-win32@cygnus.com Subject: Re: pid problem found Date: Sun, 28 Feb 1999 23:02:00 -0000 Message-ID: <199902081459.JAA25236@jmm.raleigh.ibm.com> References: <19990208094644.A24171@cygnus.com> X-SW-Source: 1999-02n/msg00221.html Message-ID: <19990228230200._fTJHpzqGSt7wly2WGoxO8XGXlAuerMgLdjkiosfxlU@z> > Somehow I still get the feeling that you're making this a lot more > complicated than is warranted. You're probably right, so let me throw out what I'm trying to do and get a knowledgable answer :) Program started out as just running and spawning x children, but run time was variable and we need to be able to either pass a "seconds to run" param or stop it with an event/signal (specifically, from a perl script that runs the parent process). When signaled, the children will need to feed back one integer (for loop index, kept as a global var in each child) and exit. Approach was going to be have perl kill -ALRM the parent, have it handle and cascade the ALRM to children, read the integers from the pipes that were inherited by the children, and print some stats. (each child would handle ALRM by printf'ing the int and exit'ing) The code has to eventually be able to compile and run on just MS VC++ (not my choice) w/o the cygwin dll, but I was hoping to use the cygwin stuff to just get it up and working and migrate over to pure Win32 after the fact (once the immediate need for something that works is done) Thanks again for all your help and patience, James Manning -- Hardware Design Engineer --- IBM Netfinity Performance Development -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com