diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-24 12:34:21 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-24 12:34:21 +0200 |
commit | 559b3000414ec23ea147a0f00db5c69bded0befb (patch) | |
tree | 9fce708c8e9d0f3f61f4d3bb1bfbd32890273383 | |
parent | d77a8b1b8877d2dd1a0248b07564d1f88be00deb (diff) | |
download | rsyslog-559b3000414ec23ea147a0f00db5c69bded0befb.tar.gz rsyslog-559b3000414ec23ea147a0f00db5c69bded0befb.tar.bz2 rsyslog-559b3000414ec23ea147a0f00db5c69bded0befb.zip |
imuxsock: add some clarifiying comments
-rw-r--r-- | plugins/imuxsock/imuxsock.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c index 9d52fe04..01e07524 100644 --- a/plugins/imuxsock/imuxsock.c +++ b/plugins/imuxsock/imuxsock.c @@ -155,7 +155,8 @@ static int startIndexUxLocalSockets; /* process fd from that index on (used to * suppress local logging. rgerhards 2005-08-01 * read-only after startup */ -static int nfd = 1; /* number of Unix sockets open / read-only after startup */ +static int nfd = 1; /* number of active unix sockets (socket 0 is always reserved for the system + socket, even if it is not enabled. */ static int sd_fds = 0; /* number of systemd activated sockets */ /* config vars for legacy config system */ @@ -1278,7 +1279,8 @@ BEGINactivateCnfPrePrivDrop CODESTARTactivateCnfPrePrivDrop runModConf = pModConf; /* we first calculate the number of listeners so that we can - * appropriately size the listener array. + * appropriately size the listener array. Note that we will + * always allocate memory for the system log socket. */ nLstn = 0; for(inst = runModConf->root ; inst != NULL ; inst = inst->next) { |