masqmail-0.2

view src/Makefile.am @ 72:ad034b57f3b2

fixed Debian bug 536060 (log files are closed after SIGHUP receival) Explanation: When run in daemon mode, first the log files are opened. They get assigned to the file descriptors 3 and 4 usually. Then std{in,out,err} are closed. When SIGHUP comes in, all open files are closes and masqmail reexecutes itself. The new masqmail instance opens the log files at fd 0 and 1 now, but std{in,out,err} are closed afterwards, thus the log files are closed. The fix is to close the log files before std{in,out,err} are closed, in case the log files have higher fds. After std{in,out,err} were closed, the log files get opened again, now. See also: http://bugs.debian.org/536060
author meillo@marmaro.de
date Wed, 16 Jun 2010 10:32:20 +0200
parents
children
line source
1 SUBDIRS=base64 md5 libident
3 AM_CFLAGS=@CFLAGS@ @GLIB_CFLAGS@ -D_GNU_SOURCE -DG_DISABLE_DEPRECATED
5 sbin_PROGRAMS=masqmail
6 bin_PROGRAMS=mservdetect
7 noinst_PROGRAMS=smtpsend readtest
9 masqmail_SOURCES=\
10 dotlock.h\
11 masqmail.h\
12 readsock.h\
13 smtp_out.h\
14 lookup.h\
15 mserver.h\
16 accept.c\
17 address.c\
18 alias.c\
19 child.c\
20 connect.c\
21 conf.c\
22 deliver.c\
23 dotlock.c\
24 expand.c\
25 fail_msg.c\
26 get.c\
27 header.c\
28 interface.c\
29 local.c\
30 log.c\
31 listen.c\
32 lookup.c\
33 masqmail.c\
34 message.c\
35 mserver.c\
36 online.c\
37 parse.c\
38 peopen.c\
39 peopen.h\
40 permissions.c\
41 pop3_in.c\
42 pop3_in.h\
43 readsock.c\
44 rewrite.c\
45 route.c\
46 queue.c\
47 smtp_in.c\
48 smtp_out.c\
49 spool.c\
50 tables.c\
51 timeival.c
53 smtpsend_SOURCES=\
54 smtpsend.c\
55 masqmail.h\
56 readsock.h\
57 smtp_out.h\
58 lookup.h\
59 accept.c\
60 address.c\
61 child.c\
62 connect.c\
63 header.c\
64 interface.c\
65 lookup.c\
66 message.c\
67 parse.c\
68 peopen.c\
69 readsock.c\
70 smtp_out.c
72 mservdetect_SOURCES=\
73 masqmail.h\
74 readsock.h\
75 mserver.h\
76 mservdetect.c\
77 interface.c\
78 mserver.c\
79 readsock.c\
80 peopen.c
82 readtest_SOURCES=\
83 readsock.c\
84 readsock.h\
85 readtest.c
87 masqmail_LDADD=@RESOLV_LIBS@ @GLIB_LIBS@ @LOCKFILE_LIBS@ @MD5_LIBS@ @BASE64_LIBS@ @IDENT_LIBS@
88 smtpsend_LDADD=@RESOLV_LIBS@ @GLIB_LIBS@ @MD5_LIBS@ @BASE64_LIBS@
89 mservdetect_LDADD=@GLIB_LIBS@
90 readtest_LDADD=@GLIB_LIBS@