Thanks. Closing all unused fd except 0,1,2 is our current solution. --CQ
> -----Original Message----- > From: Roland Dreier [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 12:33 PM > To: Tang, Changqing > Cc: [EMAIL PROTECTED]; [email protected] > Subject: Re: [ofa-general] QP connection healthy detection > problem with fork/exec > > > When a process fork/exec, isn't QP destroyed automatically > ? If the QP is destroyed, then > RDMA operation is based on > QP connection and should fail. > > No, the QP is not destroyed automatically. > > The kernel will clean up resources when the user verbs > context's file descriptor is closed, and that does not happen > on fork/exec. > > A safe thing to do when you fork/exec is to close any file > descriptors that you don't need... you can use a loop up to > getdtablesize() to close everything. > > - R. > _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
