> -----Original Message----- > From: Mark J. Reed [mailto:markjreed / mail.com] > Sent: Monday, September 08, 2003 11:39 AM > To: ruby-talk / ruby-lang.org > Subject: Re: setsid <snip> > According to the setsid(2) man page: > > ERRORS > The setsid() function will fail if: > > EPERM The calling process is already a process group leader, > or the process group ID of a process other than the > calling process matches the process ID of the calling > process. > > So it's failing because the Ruby process is already a pgroup leader. > In other words, fork first. :) Regards, Dan