Trouble with pgrep - *** fatal error - called with threadlist_ix -1

Sean McNamara tank_9@yahoo.com
Tue Oct 3 19:34:00 GMT 2006


Hi all, 

I'm having some trouble with some scripts that we are trying to run in cygwin.  These scripts work fine on both Unix and Linux boxen, but when trying to do a "pgrep" in the script, get a fatal error.  I've tried to find an answer in the archives and via google but either it's not a commonly encountered issue, or my keywords are poor....

I can re-create the error from a command line.  Below is an example:

-------------------------------------SNIP-------------------------------------------------

[557] /c/dev/apps/bin
$ ps ax
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     2160       1    2160       2160  con 25282 10:33:03 /usr/bin/bash
     5272       1    2496       3236  con 25282 10:33:23 /usr/bin/sh
     2316    5272    2496       5820  con 25282 10:33:24 /usr/bin/sh
     5448    2316    2496       5920  con 25282 10:33:25 /c/j2sdk1.4.2_08/bin/java
     5708       1    5152       5548  con 25282 10:35:00 /usr/bin/sh
      460    5708    5152       2592  con 25282 10:35:00 /usr/bin/sh
     3692     460    5152       3200  con 25282 10:35:02 /c/j2sdk1.4.2_08/bin/java
     4148    2160    4148       6108  con 25282 14:29:18 /usr/bin/ps

[558] /c/dev/apps/bin
$ pgrep -P 2160
     28 [sig] pgrep 3292 C:\cygwin\bin\pgrep.exe: *** fatal error - called with threadlist_ix -1
Hangup


---------------------------------------SNIP-------------------------------------------------

Can anyone give me some pointers on what might be going wrong here?

Thanks!





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list