Next: , Previous: , Up: Introduction to the library   [Contents][Index]


6.1.7 Sessions and fork

A gnutls_session_t object can be shared by two processes after a fork, one sending, the other receiving. In that case rehandshakes, cannot and must not be performed. As with threads, the termination of a session should be handled by the sender process using gnutls_bye with GNUTLS_SHUT_WR and the receiving process waiting for a return value of zero.