RE: problems in Perl process management

2005-05-24 Thread Sonam Chauhan
to bug report filed here: http://rt.cpan.org/NoAuth/Bug.html?id=12840 -Original Message- From: Sonam Chauhan Sent: Wednesday, 18 May 2005 3:32 PM To: 'cygwin@cygwin.com' Subject: RE: problems in Perl process management Thanks for raising 'ps -W' behavior Chris. It is interesting

Re: problems in Perl process management

2005-05-24 Thread Christopher Faylor
On Tue, May 24, 2005 at 05:11:00PM +1000, Sonam Chauhan wrote: Hi - Asking again since I didn't get a response... You got a response before you asked the question. demonstrated by my testcase script), the CW_GETPINFO_FULL query returns: 1. Invalid PPIDs Only PPIDs for cygwin processes are

RE: problems in Perl process management

2005-05-24 Thread Sonam Chauhan
Please clarify so I understand better. Are you saying that since... ps -W will also not always properly report on execed processes in ^ general. Since ps -W uses CW_GETPINFO_FULL, ... ... by implication, CW_GETPINFO_FULL does

Re: problems in Perl process management

2005-05-24 Thread Christopher Faylor
On Wed, May 25, 2005 at 09:45:50AM +1000, Sonam Chauhan wrote: Please clarify so I understand better. Are you saying that since... ps -W will also not always properly report on execed processes in ^ general. Since ps -W uses

RE: problems in Perl process management

2005-05-24 Thread Sonam Chauhan
Chris: ps -W will also not always properly report on execed processes in ^ general. Since ps -W uses CW_GETPINFO_FULL, ... Won't it be better fixing this bug, than fixing 'Proc::ProcessTable' and 'ps -W' and all the other

Re: problems in Perl process management

2005-05-24 Thread Christopher Faylor
On Wed, May 25, 2005 at 02:41:28PM +1000, Sonam Chauhan wrote: cgf wrote: I don't believe I've ever heard anyone complaining about the way this works in ps -W or in all of the other programs which use this. There's a first time for everything. I guess I'll wait for the second, third, and fourth

RE: problems in Perl process management

2005-05-24 Thread Sonam Chauhan
I guess I'll wait for the second, third, and fourth time for everything before I start getting really worried. As you like. It seems to me that it would be a lot easier to work around in the perl module. Can you suggest any other CW_... query that would report on PIDs accurately?

RE: problems in Perl process management

2005-05-19 Thread Sonam Chauhan
Yitzchak: sorry this reply is late. I just reread the whole thread three times, and fail to detect any rudeness from him. He did confess to being flip, though. (I thought it was just an attempt at humor.) http://dictionary.reference.com/search?q=flip I also notice that deeper forked

Re: problems in Perl process management

2005-05-17 Thread Reini Urban
Sonam Chauhan schrieb: Reini - Thanks for replying man. I didn't complain yet upstream at rt.cpan.org because I wanted to wait for our 5.8.7 release. But you can do it by yourself also, OK, I'm not that talented, so I didn't try fixing this bug, but I did report it with a better testcase here:

RE: problems in Perl process management

2005-05-17 Thread Sonam Chauhan
Reini: [Note, I'm no Cygwin expert, so please correct any misunderstandings.] or fix it in this module XS. It's really easy with the cygwin provided translation functions. See http://sourceware.org/ml/cygwin/2005-02/msg00154.html ... After all, Proc::ProcessTable misreports the PID and

Re: problems in Perl process management

2005-05-17 Thread Christopher Faylor
On Wed, May 18, 2005 at 01:01:48PM +1000, Sonam Chauhan wrote: Reini: [Note, I'm no Cygwin expert, so please correct any misunderstandings.] or fix it in this module XS. It's really easy with the cygwin provided translation functions. See

RE: problems in Perl process management

2005-05-17 Thread Sonam Chauhan
Thanks for raising 'ps -W' behavior Chris. It is interesting. From what I gather, the root problem is that for some processes (as demonstrated by my testcase script), the CW_GETPINFO_FULL query returns: 1. Invalid PPIDs Only PPIDs for cygwin processes are returned. Everything else should

RE: problems in Perl process management

2005-05-15 Thread Sonam Chauhan
Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -Original Message- From: Reini Urban [mailto:[EMAIL PROTECTED] Sent: Sunday, 15 May 2005 2:32 AM To: 'cygwin@cygwin.com' Cc: Sonam Chauhan Subject: Re: problems in Perl process management Sonam Chauhan schrieb: I had

Re: problems in Perl process management

2005-05-14 Thread Reini Urban
Sonam Chauhan schrieb: I had thought Gerrit would release a new 5.8.6 with them, but this doesn't seem to have happened; don't know if I somehow dropped the ball on that. In any case, I'm really really hoping that 5.8.7 is released in the next few weeks. I don't know anything about problems with

RE: problems in Perl process management

2005-05-13 Thread Sonam Chauhan
Yitzchak: I had thought Gerrit would release a new 5.8.6 with them, but this doesn't seem to have happened; don't know if I somehow dropped the ball on that. In any case, I'm really really hoping that 5.8.7 is released in the next few weeks. I don't know anything about problems with

Re: problems in Perl process management

2005-05-13 Thread Yitzchak Scott-Thoennes
On Fri, May 13, 2005 at 07:11:23PM +1000, Sonam Chauhan wrote: Can you confirm whether your patch addresses a problem Reini reported your thread in Feb? It was this message: http://sourceware.org/ml/cygwin/2005-02/msg00224.html ...where Reini said: But the cygwin pid's seem to be

Re: problems in Perl process management

2005-05-13 Thread Yitzchak Scott-Thoennes
Commerce, Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -Original Message- From: Christopher Faylor [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 May 2005 1:18 AM To: cygwin@cygwin.com Subject: Re: problems in Perl process management YJS

Re: problems in Perl process management

2005-05-13 Thread Yitzchak Scott-Thoennes
On Fri, May 13, 2005 at 05:53:07AM -0700, Yitzchak Scott-Thoennes wrote: Earlier topquoting somewhat reformated. Apologies for not trimming the tail end of that (including email addresses). -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: problems in Perl process management

2005-05-12 Thread Yitzchak Scott-Thoennes
On Wed, May 11, 2005 at 11:18:16AM -0400, Christopher Faylor wrote: bearing on the statement However, I also notice that deeper forked processes (grandchildren) refuse to die. This script is only run using ActiveState Perl. If someone is talking about fork on windows in a cygwin mailing list

RE: problems in Perl process management

2005-05-11 Thread Sonam Chauhan
Christopher - Yes, if you send a kill -9 to a pid that shows up in ps but is associated with a non-cygwin process, it should work. So what me and Jurgen were discussing works, and you were wrong. Thanks for revisiting your point after your earlier rudeness. Regards, Sonam Chauhan --

Re: problems in Perl process management

2005-05-11 Thread Christopher Faylor
On Wed, May 11, 2005 at 04:24:56PM +1000, Sonam Chauhan wrote: Christopher - Yes, if you send a kill -9 to a pid that shows up in ps but is associated with a non-cygwin process, it should work. So what me and Jurgen were discussing works, and you were wrong. Thanks for revisiting your point

RE: problems in Perl process management

2005-05-11 Thread Sonam Chauhan
, Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -Original Message- From: Christopher Faylor [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 May 2005 1:18 AM To: cygwin@cygwin.com Subject: Re: problems in Perl process management On Wed, May 11, 2005 at 04

Re: problems in Perl process management

2005-05-10 Thread Jurgen Defurne
I also would like to know if it is possible. However, it could be that it has nothing to do with Cygwin. I have a Perl script which forks several children and monitors their output. If a child fails, then it has no use to run all forked processes further and I kill them with the perl 'kill'

Re: problems in Perl process management

2005-05-10 Thread Steven Hartland
that's by design if u want to kill an entire tree u can do so with process explorer a free download from www.sysinternals.com. Steve - Original Message - From: Jurgen Defurne I also would like to know if it is possible. However, it could be that it has nothing to do with Cygwin. I

Re: problems in Perl process management

2005-05-10 Thread Christopher Faylor
On Tue, May 10, 2005 at 01:12:05PM +0200, Jurgen Defurne wrote: I also would like to know if it is possible. However, it could be that it has nothing to do with Cygwin. I have a Perl script which forks several children and monitors their output. If a child fails, then it has no use to run all

RE: problems in Perl process management

2005-05-10 Thread Sonam Chauhan
, Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -Original Message- From: Jurgen Defurne [mailto:[EMAIL PROTECTED] Sent: Tuesday, 10 May 2005 9:12 PM To: Sonam Chauhan Cc: cygwin@cygwin.com Subject: Re: problems in Perl process management I also

Re: problems in Perl process management

2005-05-10 Thread Christopher Faylor
On Wed, May 11, 2005 at 01:19:14PM +1000, Sonam Chauhan wrote: Hi Christopher - your response to Jurgen had mentioned: ActiveState perl is a windows program. You can't send cygwin (aka unix) signals to a windows proram. This should be possible if the ActiPerl Windows executable was executed

Re: problems in Perl process management

2005-05-10 Thread Christopher Faylor
On Tue, May 10, 2005 at 11:22:49PM -0400, Christopher Faylor wrote: On Wed, May 11, 2005 at 01:19:14PM +1000, Sonam Chauhan wrote: Hi Christopher - your response to Jurgen had mentioned: ActiveState perl is a windows program. You can't send cygwin (aka unix) signals to a windows proram. This