libsmbclient and forking

Uri Simchoni uri_simchoni at hotmail.com
Wed Mar 4 11:12:58 GMT 2009


Hi,

 

Is it safe to fork in an application that uses libsmbclient with open contexts, assuming they are not using the same connections?

 

I mean, suppose after forking I purge the cached servers in the child process - smbc_getFunctionPurgeCachedServers(ctx)(ctx)

so that any requests will result in new connections. Still, there may be some other shared resources that may not be handled correctly...

 

Any thoughts?

 

Thanks,

Uri.

 

_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx


More information about the samba-technical mailing list