> In one thread I am waiting for data in recv () call. > Form other thread due to some reason I close socket > on which recv () is waiting. > > But recv () is not coming back from call. > What should I do so that as soon as I close socket > recv () will give error or come back from blocking > state. > try killing the thread asynchronously after you close the socket .. i guess this is one of the options.. man pthread_cancel.
amit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __everything__ is possible, the impossible just takes longer... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ______________________________________________________________________ Pune GNU/Linux Users Group Mailing List: (plug-mail@plug.org.in) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.