On Fri, Nov 12, 2004 at 01:53:35PM -0000, Dave Korn wrote: >> -----Original Message----- >> From: cygwin-owner On Behalf Of Kamen TOMOV >> Sent: 12 November 2004 12:40 > >> On Fri, Nov 12 2004, Brian Dessent wrote: >> >> > Kamen TOMOV wrote: >> > >> > > The parent process is started as a windows server. Then it >> > > executes cygwin's fork. When I try to kill any of these with >> > > kill() it returns "No such pid". >> > >> > Are you sure you're not confusing Cygwin PIDs with Win32 PIDs? In >> > order to make the fork() magic work, Cygwin maintains its own PIDs >> > in parallel to the actual windows PID. All the Cygwin functions >> > ... >> >> Thanks Brian. Yes I am sure I'm not confusing them. I tryed a function >> that is part of the cygwin's API. It is called cygwin_winpid_to_pid to >> get the cygwin's PID but it returns -1 on pids which does not >> correspond to a cygwin pid. > > Waittaminnit. You're saying that the spawned processes _aren't_ cygwin >processes?
If the execed process is not a cygwin process a cygwin "stub" should stick around which tries to make it look like a real cygwin process. If you are using cygwin's fork/exec/spawn you should never need to cygwin_winpid_to_pid. cgf -- 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/