Deadlock with libsmbclient functions and Multiple forked processes

Andrew Bartlett abartlet at samba.org
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 pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- 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 : http://lists.samba.org/archive/samba-technical/attachments/20030613/8e6f0c39/attachment.bin


More information about the samba-technical mailing list