shithub: plan9front

Download patch

ref: e9e55a21f66a3eff114025dcb1fe62570d0fa3e6
parent: 11628e90fb85137a3f02e4ad5c343c15a90846b5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 8 18:00:23 EDT 2020

lib9p: implement automatic remove-on-close cleanup in postsharesrv(), remove postfd() and sharefd() functions

with the latest changes to shr(3), we can use ORCLOSE on
the control file to get the mount in the share automatically
removed when the server exits or something goes wrong during
postsharesrv().

do not expose postfd() and sharefd() functions. they where
undocumented and leak the control file descriptors.