Re: Closing all filehandles associated with a filedescriptor...

2009-12-12 Thread James Olin Oden
> The forked process could exec itself to close fd's higher > than $^F (ordinarily 2) for the initial leak. But I suspect > there's no easy way to close fd's more selectively. > Yeah I had thought about the exec(), but being its a library I would have no idea what to exec...they could tell me but

Re: Closing all filehandles associated with a filedescriptor...

2009-12-12 Thread C.DeRykus
On Dec 11, 3:10 pm, james.o...@gmail.com (James Olin Oden) wrote: > On Fri, Dec 11, 2009 at 4:36 PM, Shawn H Corey wrote: > > > James Olin Oden wrote: > >> Hi All, > > >> This is really not a beginner question but I'm not sure what list to post > >> it on. > > >> I've created a daemon library for

Re: Closing all filehandles associated with a filedescriptor...

2009-12-11 Thread James Olin Oden
On Fri, Dec 11, 2009 at 4:36 PM, Shawn H Corey wrote: > James Olin Oden wrote: >> Hi All, >> >> This is really not a beginner question but I'm not sure what list to post it >> on. >> >> I've created a daemon library for easily building daemons and at some >> point code was added to handle closing

Re: Closing all filehandles associated with a filedescriptor...

2009-12-11 Thread Shawn H Corey
James Olin Oden wrote: > Hi All, > > This is really not a beginner question but I'm not sure what list to post it > on. > > I've created a daemon library for easily building daemons and at some > point code was added to handle closing all fd's so the daemonized > process would not have fd's hang