This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: howto register process
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 11 Nov 2004 18:45:42 -0000
- Subject: RE: howto register process
> -----Original Message-----
> From: cygwin-owner On Behalf Of Kamen TOMOV
> Sent: 11 November 2004 18:37
> 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".
Does your username have sufficient privileges to kill processes belonging to
whichever user (perhaps SYSTEM, eh?) that the server is running as? It might be
a slightly bogus error message from kill, when really it should have indicated
"access denied".
BTW, kill() doesn't return a const char *. I take it you're referring to the
value in errno after the call, and the error message that perror () generates
from that? Or are you referring to the utility program /bin/kill?
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/