From: jer AT x10sion DOT com (Jeremy Garff) Subject: Creating NT services 21 Nov 1997 10:17:07 -0800 Message-ID: References: <01BCFBD9 DOT 6337FD60 AT syring@pollux.edv.agrar.tu-muenchen.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: gnu-win32 AT cygnus DOT com I was wondering if it were possible to create a NT service using the cygwin32 gcc compiler. I have ported a UNIX daemon which was written in Linux to NT (without a single line of code modification, Kudos to the cygwin folks). However when I run the program it seems that it must have a shell open during the entire execution of the program. I am even calling a fork to spawn a seperate process which I make a session leader, so in theory (or in UNIX) it detaches from the parents shell, and returns the prompt, and it does this under the bash shell in NT. However when the application is run from windows it holds a command shell open. Is there a way that I can fork/spawn this into the background as a windows NT service? Thanks, Jeremy Garff jer AT x10sion DOT com Senior Programmer/Analyst X10sion Inc. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".