On Aug 20 00:03, Takashi Yano wrote: > On Mon, 19 Aug 2019 16:00:40 +0200 > Corinna Vinschen wrote: > > As far as I can tell this is not a bug. I added debug output and found > > that ps grabs the process list *before* bash execve's into cat. So at > > the time ps gets the process list, process 1942 in your example is > > actually still bash. > > > > If you call procps, which is slower than Cygwin's own ps, you tend > > to see cat more often in this scenario. > > Sounds reasonable. I wonder why this does not occur in linux... It's way faster? Consider that in Cygwin the "task switch" is not performed by the OS, but basically by exec'ing and exec'd process. Corinna -- Corinna Vinschen Cygwin Maintainer