This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Winsock closesocket() problem


Jason,

in your test case the setuid is called after the initial socket().
Thus it is conceivable that the impersonated thread (after setuid) 
cannot always access the socket.

However when you first brought up the issue with exim, setuid()
occurs before socket().
Also exim can send and receive on those sockets, the only problem
is in closing them.

Just adding info, not explaining anything :(

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]