[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit ./getloadavg.c ./monitor.c ./monitor.h ./...
From: |
Martin Pala |
Subject: |
monit ./getloadavg.c ./monitor.c ./monitor.h ./... |
Date: |
Wed, 17 Sep 2003 14:00:52 -0400 |
CVSROOT: /cvsroot/monit
Module name: monit
Branch:
Changes by: Martin Pala <address@hidden> 03/09/17 14:00:52
Modified files:
. : getloadavg.c monitor.c monitor.h net.c spawn.c
http : engine.c
Log message:
Change the mechanism for closing inherited filedescriptors. Sockets now
have
FD_CLOEXEC flag turned on, which causes its closure on exec
(filedescriptors
are not inherited). The section between open/accept/socket and fcntl is
critical => it is protected by mutex - in the case that monit will to do
first fork() in spawn(), it must obtain the mutex to ensure that there
is
no unprotected socket.
Monit no longer closes filedescriptors in the style:
for(i= 3; i< max_descriptors; i++) close(i);
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/getloadavg.c.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monitor.c.diff?tr1=1.78&tr2=1.79&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/monitor.h.diff?tr1=1.96&tr2=1.97&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/net.c.diff?tr1=1.35&tr2=1.36&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/spawn.c.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/monit/monit/http/engine.c.diff?tr1=1.34&tr2=1.35&r1=text&r2=text
- monit ./getloadavg.c ./monitor.c ./monitor.h ./...,
Martin Pala <=