Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 1998 17:35:43 -0700
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        HighWind Software Information <info@highwind.com>, eischen@vigrid.com
Cc:        freebsd-current@FreeBSD.ORG, tlambert@primenet.com
Subject:   Re: Thread Problems
Message-ID:  <199809110035.RAA18552@salsa.gv.tsc.tdk.com>
In-Reply-To: HighWind Software Information <info@highwind.com> "Re: Thread Problems" (Sep 10,  1:37pm)

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 10,  1:37pm, HighWind Software Information wrote:
} Subject: Re: Thread Problems
} >   A simple solution that you can make in your application, is to close
} >   all relevent sockets after the fork and before the execl.
} 
} Seems to me that this is the only really workable solution. 
} 
} Is there a way to get "the highest numbered socket in use"?
} That would make the task easy. Just loop 0 to that number and test
} against the few sockets you need open.

Would close-on-exec also work?  If so you just need to
fcntl(fd, F_SETFD, 1) whenever you create a new socket fd.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809110035.RAA18552>