RE: howto register process

2004-11-12 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Pierre A. Humblet > Sent: 12 November 2004 18:34 > AFAIK all Cygwin processes (even those started by Windows) and their > subprocesses give full access to Administrators. If you observe that > this isn't true, please report it. What,

Re: howto register process

2004-11-12 Thread Pierre A. Humblet
On Fri, Nov 12, 2004 at 06:11:08PM -, Dave Korn wrote: > > -Original Message- > > From: cygwin-owner On Behalf Of Kamen TOMOV > > Sent: 12 November 2004 17:33 > > > We have a daemon compiled with cygwin's fork, kill, etc. > > > > 1st scenario: > > > > - the daemon gets started as a

RE: howto register process

2004-11-12 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Kamen TOMOV > Sent: 12 November 2004 17:33 > We have a daemon compiled with cygwin's fork, kill, etc. > > 1st scenario: > > - the daemon gets started as a Windows service > - the daemon forks (calling the cygwin's version of fork())

Re: howto register process

2004-11-12 Thread Pierre A. Humblet
On Fri, Nov 12, 2004 at 08:02:05PM +0200, Kamen TOMOV wrote: > On Fri, Nov 12 2004, Christopher Faylor wrote: > > > *Why* are you calling cygwin_winpid_to_pid on the pids? If you are > > getting the pid from the return value of fork they are cygwin pids. > > You don't call cygwin_winpid_to_pid on

Re: howto register process

2004-11-12 Thread Kamen TOMOV
On Fri, Nov 12 2004, Christopher Faylor wrote: > *Why* are you calling cygwin_winpid_to_pid on the pids? If you are > getting the pid from the return value of fork they are cygwin pids. > You don't call cygwin_winpid_to_pid on them. A normal cygwin > program should not be using cygwin_winpid_to_

Re: howto register process

2004-11-12 Thread Kamen TOMOV
On Fri, Nov 12 2004, Pierre A. Humblet wrote: > You have not provided the information requested in > http://cygwin.com/problems.html, despite being asked. > > FWIW, what you describe would make sense if you are logged in under > Terminal Services and you do not have the Create Global Name > privi

Re: howto register process

2004-11-12 Thread Christopher Faylor
On Fri, Nov 12, 2004 at 07:32:40PM +0200, Kamen TOMOV wrote: >On Fri, Nov 12 2004, Christopher Faylor wrote: > >> On Fri, Nov 12, 2004 at 05:29:45PM +0200, Kamen TOMOV wrote: >> >> >That's a great idea. I'll stick with it and will rewrite the >> >application to start the daemons from the cygwin's s

Re: howto register process

2004-11-12 Thread Pierre A. Humblet
On Fri, Nov 12, 2004 at 07:32:40PM +0200, Kamen TOMOV wrote: > > It's for sure that there are some things that are not quite clear, but > in a nutshell: > > We have a daemon compiled with cygwin's fork, kill, etc. > > 1st scenario: > > - the daemon gets started as a Windows service > - the dae

Re: howto register process

2004-11-12 Thread Kamen TOMOV
On Fri, Nov 12 2004, Christopher Faylor wrote: > On Fri, Nov 12, 2004 at 05:29:45PM +0200, Kamen TOMOV wrote: > > >That's a great idea. I'll stick with it and will rewrite the > >application to start the daemons from the cygwin's shell. That > >would make my life much easier because instead of rew

Re: howto register process

2004-11-12 Thread Christopher Faylor
On Fri, Nov 12, 2004 at 05:29:45PM +0200, Kamen TOMOV wrote: >On Fri, Nov 12 2004, Dave Korn wrote: > >> Waittaminnit. You're saying that the spawned processes _aren't_ >> cygwin processes? >> >> Well then you're entirely barking up the wrong tree. Cygwin can't >> magically make win32 progra

Re: howto register process

2004-11-12 Thread Kamen TOMOV
On Fri, Nov 12 2004, Dave Korn wrote: > Waittaminnit. You're saying that the spawned processes _aren't_ > cygwin processes? > > Well then you're entirely barking up the wrong tree. Cygwin can't > magically make win32 programs signal-aware. The issue of not having > a pid for it is utterly

Re: howto register process

2004-11-12 Thread Christopher Faylor
On Fri, Nov 12, 2004 at 01:53:35PM -, 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

RE: howto register process

2004-11-12 Thread Dave Korn
> -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

Re: howto register process

2004-11-12 Thread Kamen TOMOV
Hi, On Thu, Nov 11 2004, Dave Korn wrote: > Don't know if you just forgot to send this reply to the list as > well as to me, but see the first paragraph of > http://www.cygwin.com/ml/cygwin/2004-11/msg00424.html > for a list of reasons why to always send replies to the list. Yes, I'm sorry. I

Re: howto register process

2004-11-12 Thread Kamen TOMOV
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?

Re: howto register process

2004-11-11 Thread Brian Dessent
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 maintain

Re: howto register process

2004-11-11 Thread Christopher Faylor
On Thu, Nov 11, 2004 at 08:05:07PM -, Dave Korn wrote: >>kill() prints int STDERR the error message - it is not returned by it. > >That strikes me as very very wrong indeed for a library function. A >quick scan through signal.cc doesn't seem to show anything in kill, >kill0, or kill_worker, th

RE: howto register process

2004-11-11 Thread Dave Korn
> -Original Message- > From: kamen On Behalf Of Kamen TOMOV > Sent: 11 November 2004 19:06 > To: Dave Korn Don't know if you just forgot to send this reply to the list as well as to me, but see the first paragraph of http://www.cygwin.com/ml/cygwin/2004-11/msg00424.html for a list of re

RE: howto register process

2004-11-11 Thread Dave Korn
> -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 suffic

Re: howto register process

2004-11-11 Thread Kamen TOMOV
On Thu, Nov 11 2004, Christopher Faylor wrote: > On Thu, Nov 11, 2004 at 08:24:30PM +0200, Kamen TOMOV wrote: > >Thanks Dave. The thing is that the child processes get forked with > >a fork() invocation. What's more not only the child pids are > >invisible to cygwin, but also their parent is invis

Re: howto register process

2004-11-11 Thread Christopher Faylor
On Thu, Nov 11, 2004 at 08:24:30PM +0200, Kamen TOMOV wrote: >Thanks Dave. The thing is that the child processes get forked with a >fork() invocation. What's more not only the child pids are invisible >to cygwin, but also their parent is invisible. That is why I'm >wondering isn't there a way to ma

Re: howto register process

2004-11-11 Thread Kamen TOMOV
On Thu, Nov 11 2004, Dave Korn wrote: > > From: cygwin-owner On Behalf Of Kamen TOMOV > > Sent: 11 November 2004 11:01 > > To: cygwin > > Subject: howto register process > > > > Hi, > > > > I have an application that is created to work on Unix but it is > > supposed to run on Windows as well. Th

RE: howto register process

2004-11-11 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Kamen TOMOV > Sent: 11 November 2004 11:01 > To: cygwin > Subject: howto register process > > Hi, > > I have an application that is created to work on Unix but it is > supposed to run on Windows as well. The problem is that we have a