posix_spawnp creates ghost processes

Andrey Repin anrdaemon@yandex.ru
Fri Apr 24 08:10:42 GMT 2020


Greetings, Kristian Ivarsson via Cygwin!

> We're having a rather complex application and have noticed a rather weird
> behaviour that I cannot find any information about

> We're using posix_spawnp and sometimes it creates extra "ghost-process(es)"
> non visible to cygwin (via e.g. process status (ps)) but visible to Windows
> (Task Manager)

Cygwin may spawn processes for housekeeping. F.e. if you "program &" in shell,
an additional shell will be spawned to launch the "program" and notify the
parent shell when it exits.

> The function doesn't fail and it doesn't report any error, but sometimes
> (hard to reproduce deterministically) it creates one, or more, extra
> processes of the same binary

> Have anyone noticed and/or have some information/ideas about this ?

Are these processes correctly exit when all childs exit?


-- 
With best regards,
Andrey Repin
Friday, April 24, 2020 11:08:35

Sorry for my terrible english...



More information about the Cygwin mailing list