Hello Igor, Problem solved, please ignore my last posting.
You were correct. The environment string had not in fact been set up via cygrunsrv when I installed inetd originally. I tried setting it via the services dialog in XP and as a global system-wide variable, but I had forgotten about cygrunsrv -e. The following install fixed the problem: cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e CYGWIN=server cygrunsrv -S inetd Once again, thank you for your prompt reply and assistance. Best regards, John -----Original Message----- From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] Sent: Sunday, 3 July 2005 1:15 AM To: John Ypsilantis Cc: cygwin@cygwin.com Subject: Re: Shmget() fails when run within a program that is started by inetd. Has anyone else encountered this? On Sat, 2 Jul 2005, John Ypsilantis wrote: > I have come across what may be a problem with the interaction of the > shared memory subsystem with networking code that is run up by inetd. > The following program runs to completion when started interactively > and under (x)inetd control for FC3. While it also runs to completion > when started interactively under Cygwin, it crashes silently within > the > shmget() call when it is run up under inetd. > > The program should be run on a system with shared segment with key=1 > absent. How is inetd installed as service? Does that service have CYGWIN=server in its environment? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/