[PATCH] ctdb-common: Set close-on-exec when creating PID file (bug 12898)

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Jul 13 08:51:50 UTC 2017


On Thu, Jul 13, 2017 at 04:21:19PM +1000, Martin Schwenke via samba-technical wrote:
> Otherwise, for example, the file descriptor for the main PID file will
> leak all the way down to event scripts.

What prevents ctdb and the rest of samba to use a common pidfile
handling? The version in lib/util already has that close on exec bit
set, at least it does have a call to smb_set_close_on_exec(fd);.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list