comparison src/masqmail.c @ 73:9db75b801dc4

made a comment more exact
author meillo@marmaro.de
date Wed, 16 Jun 2010 10:35:13 +0200
parents ad034b57f3b2
children 0a5b2e96ade3
comparison
equal deleted inserted replaced
72:ad034b57f3b2 73:9db75b801dc4
601 /* initialize random generator */ 601 /* initialize random generator */
602 srand(time(NULL)); 602 srand(time(NULL));
603 /* ignore SIGPIPE signal */ 603 /* ignore SIGPIPE signal */
604 signal(SIGPIPE, SIG_IGN); 604 signal(SIGPIPE, SIG_IGN);
605 605
606 /* close all possibly open file descriptors */ 606 /* close all possibly open file descriptors, except std{in,out,err} */
607 { 607 {
608 int i, max_fd = sysconf(_SC_OPEN_MAX); 608 int i, max_fd = sysconf(_SC_OPEN_MAX);
609 609
610 if (max_fd <= 0) 610 if (max_fd <= 0)
611 max_fd = 64; 611 max_fd = 64;