masqmail
diff src/listen.c @ 15:f671821d8222
code beautifying; 0 -> \0 if appropriate
author | meillo@marmaro.de |
---|---|
date | Thu, 06 Nov 2008 09:18:38 +0100 |
parents | 26e34ae9a3e3 |
children | 5745edd5b769 |
line diff
1.1 --- a/src/listen.c Wed Oct 29 21:21:26 2008 +0100 1.2 +++ b/src/listen.c Thu Nov 06 09:18:38 2008 +0100 1.3 @@ -16,10 +16,11 @@ 1.4 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 1.5 */ 1.6 1.7 -#include "masqmail.h" 1.8 #include <sys/wait.h> 1.9 #include <sys/types.h> 1.10 1.11 +#include "masqmail.h" 1.12 + 1.13 static int volatile sighup_seen = 0; 1.14 1.15 static void 1.16 @@ -132,8 +133,7 @@ 1.17 signal(SIGHUP, sighup_handler); 1.18 signal(SIGCHLD, sigchld_handler); 1.19 1.20 - /* now that we have our socket(s), 1.21 - we can give up root privileges */ 1.22 + /* now that we have our socket(s), we can give up root privileges */ 1.23 if (!conf.run_as_user) { 1.24 if (setegid(conf.mail_gid) != 0) { 1.25 logwrite(LOG_ALERT, "could not change gid to %d: %s\n", conf.mail_gid, strerror(errno)); 1.26 @@ -172,8 +172,7 @@ 1.27 } 1.28 } 1.29 /* Block until input arrives on one or more active sockets, 1.30 - or signal arrives, 1.31 - or queuing interval time elapsed (if qival > 0) */ 1.32 + or signal arrives, or queuing interval time elapsed (if qival > 0) */ 1.33 read_fd_set = active_fd_set; 1.34 if ((sel_ret = select(FD_SETSIZE, &read_fd_set, NULL, NULL, qival > 0 ? &tm : NULL)) < 0) { 1.35 if (errno != EINTR) {