- 31 Oct, 2018 1 commit
-
-
Max Kellermann authored
-
- 01 Aug, 2018 1 commit
-
-
Max Kellermann authored
Don't use the bad `FatalError` library.
-
- 17 Jan, 2018 1 commit
-
-
Max Kellermann authored
-
- 12 Dec, 2017 1 commit
-
-
Max Kellermann authored
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
-
- 03 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 15 Aug, 2016 1 commit
-
-
Max Kellermann authored
-
- 01 Mar, 2016 1 commit
-
-
Max Kellermann authored
-
- 26 Feb, 2016 1 commit
-
-
Max Kellermann authored
-
- 23 Feb, 2016 1 commit
-
-
Max Kellermann authored
The initgroups() manpage says we need to check for _BSD_SOURCE. The thing is that glibc deprecated this macro, and doesn't define it anymore, effectively breaking all MPD supplementary groups. The real fix is to check for initgroups() availability at configure time, instead of relying on the deprecated _BSD_SOURCE macro.
-
- 16 Oct, 2015 1 commit
-
-
Max Kellermann authored
-
- 17 Sep, 2015 2 commits
-
-
Max Kellermann authored
-
François Revol authored
Haiku does not dump core, it just starts the debugger.
-
- 15 Aug, 2015 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 05 Mar, 2015 1 commit
-
-
Max Kellermann authored
-
- 01 Jan, 2015 1 commit
-
-
Max Kellermann authored
-
- 24 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 18 Jan, 2014 3 commits
-
-
Max Kellermann authored
Keep the parent process around until MPD has finished initializing. This is important for libraries that are allergic to fork(), such as libupnp.
-
Max Kellermann authored
-
Max Kellermann authored
Prepare for more advanced daemonization code, which will not work with daemon(). Let's just require fork(). Everybody who supports daemon() also supports fork().
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 29 Dec, 2013 4 commits
-
-
Max Kellermann authored
We can assume that initgroups() would be a no-op in that case, however initgroups() is not allowed for unprivileged users anyway.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 15 Dec, 2013 1 commit
-
-
Max Kellermann authored
-
- 28 Nov, 2013 1 commit
-
-
Max Kellermann authored
-
- 17 Oct, 2013 1 commit
-
-
Max Kellermann authored
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
-
- 02 Oct, 2013 1 commit
-
-
Max Kellermann authored
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
-
- 01 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 07 Aug, 2013 4 commits
-
-
Max Kellermann authored
Migrate all callers to use Path directly, instead of doing the conversion in each caller.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 31 Mar, 2011 1 commit
-
-
Jonathan Neuschäfer authored
These fixes were mostly generated with `codespell' [0] and manually reviewed. [0] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
-
- 29 Jan, 2011 1 commit
-
-
Max Kellermann authored
-
- 25 Sep, 2010 1 commit
-
-
Thomas Jansen authored
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
-
- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 13 Aug, 2009 1 commit
-
-
Mike Frysinger authored
For systems that cannot support fork() (like no-mmu Linux), use daemon() if it is available for the daemonizing code. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- 22 Jul, 2009 1 commit
-
-
Michal Nazarewicz authored
Changed function to first close standard input (this may fail but we don't care) and then try to open /dev/null (this may fail but it shouldn't on Unix platforms plus we don't know what to do in such case anyways). Since standard input has the "zeroth" descriptor number next "open" will use it. Since there is no "/dev/null" on Windows (It's not even a valid path!) the second step is skipped if WIN32 is defined. As a final touch, since the function consists of merely two function calls it has been moved to header file and declared static inline. [mk: un-inline daemonize_close_stdin()]
-