Codebase list daemonize / 2f59ad8
Merge tag 'upstream/1.7.7' Upstream version 1.7.7 Sandro Tosi 8 years ago
10 changed file(s) with 23 addition(s) and 31 deletion(s). Raw diff Collapse all Expand all
00 daemonize Change Log
11 ====================
2
3 Changes in version 1.7.7:
4
5 - CFLAGS and LDFLAGS not passed through from `configure` to `Makefile`. Fixes GitHub
6 Issue #20 <https://github.com/bmc/daemonize/issues/20>. Thanks to Andrew Stormont
7 (andyjstormont /at/ gmail.com) for the patch.
28
39 Changes in version 1.7.6:
410
1420
1521 [Issue #12]: https://github.com/bmc/daemonize/issues/12
1622
17 -----------------------------------------------------------------------------
1823 Changes in version 1.7.4:
1924
2025 - Merged `acconfig.h` patch from Andreas Müller
2126 (schnitzeltony _at_ googlemail.com) that cleans up `getopt` references.
2227 - Moved version stamp into a header.
2328
24 -----------------------------------------------------------------------------
2529 Changes in version 1.7.3:
2630
2731 - Merged patch from Ewan Mellor (ewan.mellor _at_ citrix.com) that adds an
2832 appropriate definition for `HAVE_INITGROUPS` to `config.h.in`.
29 -----------------------------------------------------------------------------
33
3034 Changes in version 1.7.2:
3135
3236 - Fixed bad reference to `LOG_ERROR` in `daemon.c`, causing compilation
3337 problems (Should have been `LOG_ERR`.)
34 -----------------------------------------------------------------------------
38
3539 Changes in version 1.7.1:
3640
3741 - Added emulator for *flock*(2) file locking call, emulated in terms of
4044
4145 [Issue #3]: https://github.com/bmc/daemonize/issues/3
4246
43 -----------------------------------------------------------------------------
4447 Changes in version 1.7.0:
4548
4649 - Now supports a `-E` parameter, which allows setting one or more environment
4750 variables, to be passed to the daemon. Based on a suggestion from
4851 Michel Gouget *michel /at/ gouget.org*.
4952
50 -----------------------------------------------------------------------------
5153 Changes in version 1.6.2:
5254
5355 - Local copy of daemon(3) now errors out (with a message to syslog(3)) if
5456 it cannot open /dev/null. Thanks to Folkert van Heusden
5557 *folkert.mobiel /at/ gmail.com* for noticing the problem.
5658
57 -----------------------------------------------------------------------------
5859 Changes in version 1.6.1:
5960
6061 - Makefile now generates daemonize.html, an HTML-ized version of the man page.
6465
6566 [Sam Pierson]: http://sampierson.com/blog
6667
67 -----------------------------------------------------------------------------
6868 Changes in version 1.6:
6969
7070 Rolled in changes submitted by Ken D. Farnen, (kenf /at/ 14Cubed.COM):
8585 the login code. Daemonize now initializes those group memberships, as
8686 well, if the initgroups() function is present.
8787
88 -----------------------------------------------------------------------------
8988 Changes in version 1.5.6:
9089
9190 - Accepted and applied a patch from Gary T. Giesen (giesen /at/ snickers.org)
9291 that allows the daemonize Makefile to play well with Linux RPMs.
9392
94 -----------------------------------------------------------------------------
9593 Changes in version 1.5.5:
9694
9795 - Changes in 1.5.4 made it impossible to create PID files in directories
10098 corrected slightly to ensure that the proper PID is written and that the
10199 PID file has mode 0644.
102100
103 -----------------------------------------------------------------------------
104101 Changes in version 1.5.4:
105102
106103 - If a user name is specified via the -u option, the output files specified
113110
114111 - Added some documentation to the code.
115112
116 -----------------------------------------------------------------------------
117113 Changes in version 1.5.3:
118114
119115 - Minor licensing change. (configure.in still emitted a message indicated
120116 that daemonize is GPL-licensed. It's BSD-licensed.)
121117 - Updated copyright information.
122118
123 -----------------------------------------------------------------------------
124119 Changes in version 1.5.2:
125120
126121 Two changes suggested and supplied by Yakov Lerner <iler.ml <at> gmail.com>:
131126 - Now makes additional checks to ensure that the program specified to
132127 daemonize is a regular file, not a directory.
133128
134 -----------------------------------------------------------------------------
135129 Changes in version 1.5.1:
136130
137131 - Now released under BSD-style license, not GNU Public License.
138132
139 -----------------------------------------------------------------------------
140133 Changes in version 1.5:
141134
142135 - daemonize can now optionally redirect the daemon's standard output and
144137
145138 - configure now supports a local basename() emulator.
146139
147 -----------------------------------------------------------------------------
148140 Changes in version 1.4:
149141
150142 - Version of daemon(3) shipped with daemonize attempted to redirect
164156
165157 - daemonize now installs with 0755 permissions, instead of 0700.
166158
167 -----------------------------------------------------------------------------
168159 Changes in version 1.3:
169160
170161 - The "-c" option now actually works. Duh.
171162
172 -----------------------------------------------------------------------------
173163 Changes in version 1.2:
174164
175165 - The external names in getopt.c are now prefixed with "x_" (e.g.,
179169 to Michael Fuchs <mf /at/ mfox /dot/ de> for pointing out the problem
180170 on Solaris.
181171
182 -----------------------------------------------------------------------------
183172 Changes in version 1.1:
184173
185174 - Now uses local getopt.c unconditionally, instead of defaulting to
1212 MISSING_SOURCES = @LOCAL_MISSING_SOURCES@
1313 MISSING_OBJECTS = $(MISSING_SOURCES:.c=.o)
1414 CC = @CC@
15 CFLAGS = @CFLAGS@
16 LDFLAGS = @LDFLAGS@
1517
1618 .PHONY: all psman install clean distclean
1719
2123 all: daemonize
2224
2325 daemonize: daemonize.o getopt.o $(MISSING_OBJECTS)
24 $(CC) $(CFLAGS) -o daemonize daemonize.o getopt.o $(MISSING_OBJECTS)
26 $(CC) $(CFLAGS) -o $@ $^
2527
2628 testdaemon: testdaemon.o
27 $(CC) $(CFLAGS) -o testdaemon testdaemon.o
29 $(CC) $(CFLAGS) -o $@ $^
2830
2931 psman: daemonize.ps
3032
1010 This source code is released under a BSD-style license. See the
1111 LICENSE file for details.
1212
13 Copyright (c) 2006-2009 Brian M. Clapper, bmc <at> clapper <dot> org
13 Copyright (c) 2006-2015 Brian M. Clapper, bmc@clapper.org
1414 \*---------------------------------------------------------------------------*/
1515
1616 /*---------------------------------------------------------------------------*\
1717 This source code is released under a BSD-style. See the LICENSE
1818 file for details.
1919
20 Copyright (c) 2003-2009 Brian M. Clapper, bmc <at> clapper <dot> org
20 Copyright (c) 2003-2015 Brian M. Clapper, bmc@clapper.org
2121 \*---------------------------------------------------------------------------*/
2222
2323 /*---------------------------------------------------------------------------*\
1010 This source code is released under a BSD-style. See the LICENSE
1111 file for details.
1212
13 Copyright (c) 2011 Brian M. Clapper, bmc <at> clapper <dot> org
13 Copyright (c) 2011-2015 Brian M. Clapper, bmc@clapper.org
1414 \*---------------------------------------------------------------------------*/
1515
1616 /*---------------------------------------------------------------------------*\
77 This source code is released under a BSD-style. See the LICENSE
88 file for details.
99
10 Copyright (c) 2003-2009 Brian M. Clapper, bmc <at> clapper <dot> org
10 Copyright (c) 2003-2015 Brian M. Clapper, bmc@clapper.org
1111 \*---------------------------------------------------------------------------*/
1212
1313 #ifndef __DAEMONIZE_FLOCK_H__
6363 register int c;
6464 register char *cp;
6565
66 if(sp == 1)
66 if(sp == 1) {
6767 if(x_optind >= argc ||
68 argv[x_optind][0] != '-' || argv[x_optind][1] == '\0')
68 argv[x_optind][0] != '-' || argv[x_optind][1] == '\0') {
6969 return(EOF);
70 else if(strcmp(argv[x_optind], "--") == 0) {
70 } else if(strcmp(argv[x_optind], "--") == 0) {
7171 x_optind++;
7272 return(EOF);
7373 }
74 }
7475 x_optopt = c = argv[x_optind][sp];
7576 if(c == ':' || (cp=strchr(opts, c)) == NULL) {
7677 ERR(": illegal option -- ", c);
1111 This source code is released under a BSD-style license. See the
1212 LICENSE file for details.
1313
14 Copyright (c) 2003-2009 Brian M. Clapper, bmc <at> clapper <dot> org
14 Copyright (c) 2003-2015 Brian M. Clapper, bmc@clapper.org
1515 \*---------------------------------------------------------------------------*/
1616
1717 #define MAX_INT_DIGITS (11) /* max. digits in a LONG (w/ sign) */
1010 This source code is released under a BSD-style license. See the
1111 LICENSE file for details.
1212
13 Copyright (c) 2003-2009 Brian M. Clapper, bmc <at> clapper <dot> org
13 Copyright (c) 2003-2015 Brian M. Clapper, bmc@clapper.org
1414 \*---------------------------------------------------------------------------*/
1515
1616 #include <stdio.h>
00 /* Version stamp */
11
22 #ifndef VERSION
3 #define VERSION "1.7.6"
3 #define VERSION "1.7.7"
44 #endif