Deadlock with libsmbclient functions and Multiple forked processes

Andrew Bartlett abartlet at
Fri Jun 13 14:24:29 GMT 2003

On Sat, 2003-06-14 at 00:23, Akshay V Rao wrote:
> Well, in each forked process I perform an smbc_open(), smbc_read(), and
> smbc_close(). Do I need to do an smbc_init() before I call these functions
> even though I already did an smbc_init() before I forked the processes?

Do you need your hand held for every step?  Why not try it and see - you
should smbc_init() only after the fork().  

You should use Samba 3.0 if you need to have a specific context to pass
around to avoid using the same one across the forked process.

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list