[PATCH] Don't set child->requests to NULL in parent process after fork

boyang boyang at suse.de
Sat Jan 10 06:02:25 GMT 2009


Hi, everyone:
     I think it is a logic error to set child->requests to NULL in
parent process. Because requests are added to requests list before
fork() and schedule_async_request(). If it is set to NULL, only the
first request gets scheduled, others are lost. Why does the parent shoot
itself like this? :-)
     Please review the patch, Thanks!

Best
        Regards
BoYang
10th, Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-child-request-list.diff
Type: text/x-patch
Size: 809 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090110/60ded96b/fix-child-request-list.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boyang.vcf
Type: text/x-vcard
Size: 187 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090110/60ded96b/boyang.vcf


More information about the samba-technical mailing list