This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] cygwin+bash: bash reorders script output bug identified/fixed


Manfred Spraul wrote:
>...
Could you check if the number of processes/handles increase in the "Performance" tab of the windows task manager?

If that one remains small, them I'm out of ideas.
Perhaps Windows runs out of process ID values, not process handles? I don't know how windows manages the id values.
Before:
handles 7812
threads 409
processes 38

After:
handles 7801
threads 405
processes 38

Nope, that's not it. Here's what I did:

~/go/nngs-1.1.15> ps
PID PPID PGID WINPID TTY UID STIME COMMAND
17496 1 17496 17496 con 1006 15:22:51 /usr/bin/rxvt
17776 17496 17776 16932 0 1006 15:22:52 /usr/bin/bash
17552 17776 17552 29668 0 1006 16:31:05 /usr/bin/ps
~/go/nngs-1.1.15> ./configure
...normal output...
~/go/nngs-1.1.15> ps
PID PPID PGID WINPID TTY UID STIME COMMAND
17496 1 17496 17496 con 1006 15:22:51 /usr/bin/rxvt
17776 17496 17776 16932 0 1006 15:22:52 /usr/bin/bash
42088 17776 42088 42068 0 1006 16:33:14 /usr/bin/ps

For some reason, lower PIDs just don't get reused it seems. In process explorer and windows task manager nothing changes, except that the PIDs keep going up and up.

Can you tell me what the 'Thread's are that show up as handles for rxvt? Are those forked subprocesses or what? THree of the four you see in the output stay constant, but the high one keeps spawnig off higher and higher process IDs. on the process explorer I see another one flicker into existence:
** It has the same Handle (0xE8) as the one that's there, and one's highlighted red, the other green (old and new, I assume). The green one nearly always has a higher PID than the lower one. The handles change even when I just move the mouse in and out of the rxvt.

Any idea which forums could help with this?

Does anyone else on the list see this kind of behavior?

Thanks,
Nils.


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]