1. 01 Jan, 2010 1 commit
  2. 22 Jul, 2009 1 commit
    • Michal Nazarewicz's avatar
      daemon: daemonize_close_stdin() optimised. · bfed1c04
      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()]
      bfed1c04
  3. 19 Jul, 2009 2 commits
    • Michal Nazarewicz's avatar
      daemon: Moved empty Windows version functions to header file · 809c96b5
      Michal Nazarewicz authored
      On Windows only daemonize_close_stdin() function does
      something.  Other functions are either empty or generate an
      error.  Those have been moved to header file and declared
      static inline so compiler can remove the call all together.
      809c96b5
    • Michal Nazarewicz's avatar
      daemon: added "group" configuration option · d718a8b5
      Michal Nazarewicz authored
      The "group" configuration option is similar to "user" as it
      sets user set what group MPD shall run as.  With "user"
      option, MPD changed GID to the GID of the user, however,
      more control could be desired.
      
      Moreover, the patch changes the way of checking whether no
      setuid(2)/setgid(2) is required -- previously user names
      were compered, now UID and GIDs are compered (ie. the one we
      already have (getuid(2)/getgid(2)) with the one we want to
      change to).
      d718a8b5
  4. 13 Mar, 2009 1 commit
    • Avuton Olrich's avatar
      all: Update copyright header. · 0aee49bd
      Avuton Olrich authored
      This updates the copyright header to all be the same, which is
      pretty much an update of where to mail request for a copy of the GPL
      and the years of the MPD project. This also puts all committers under
      'The Music Player Project' umbrella. These entries should go
      individually in the AUTHORS file, for consistancy.
      0aee49bd
  5. 18 Jan, 2009 3 commits
  6. 30 Dec, 2008 2 commits
  7. 27 Dec, 2008 2 commits
  8. 31 Oct, 2008 1 commit
    • Max Kellermann's avatar
      added prefix to header macros · ea515494
      Max Kellermann authored
      "LOG_H" is a macro which is also used by ffmpeg/log.h.  This is
      ffmpeg's fault, because short macros should be reserved for
      applications, but since it's always a good idea to choose prefixed
      macro names, even for applications, we are going to do that in MPD.
      ea515494
  9. 08 Oct, 2008 1 commit
  10. 09 Sep, 2008 2 commits
  11. 08 Sep, 2008 1 commit
  12. 07 Sep, 2008 3 commits
  13. 29 Aug, 2008 2 commits
  14. 26 Aug, 2008 1 commit
  15. 12 Apr, 2008 3 commits
  16. 05 Feb, 2008 1 commit
  17. 26 Jan, 2008 1 commit
  18. 03 Jan, 2008 1 commit
    • Eric Wong's avatar
      Cleanup #includes of standard system headers and put them in one place · cb8f1af3
      Eric Wong authored
      This will make refactoring features easier, especially now that
      pthreads support and larger refactorings are on the horizon.
      
      Hopefully, this will make porting to other platforms (even
      non-UNIX-like ones for masochists) easier, too.
      
      os_compat.h will house all the #includes for system headers
      considered to be the "core" of MPD.  Headers for optional
      features will be left to individual source files.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      cb8f1af3
  19. 13 Jun, 2007 1 commit
  20. 12 Jun, 2007 1 commit
  21. 10 Jun, 2007 1 commit
  22. 30 May, 2007 1 commit
  23. 24 May, 2007 1 commit
  24. 05 Apr, 2007 1 commit
  25. 14 Jan, 2007 2 commits
  26. 26 Aug, 2006 1 commit
    • Eric Wong's avatar
      Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors · 90847fc8
      Eric Wong authored
      I'm checking for zero-size allocations and assert()-ing them,
      so we can more easily get backtraces and debug problems, but we'll
      also allow -DNDEBUG people to live on the edge if they wish.
      
      We do not rely on errno when checking for OOM errors because
      some implementations of malloc do not set it, and malloc
      is commonly overridden by userspace wrappers.
      
      I've spent some time looking through the source and didn't find any
      obvious places where we would explicitly allocate 0 bytes, so we
      shouldn't trip any of those assertions.
      
      We also avoid allocating zero bytes because C libraries don't
      handle this consistently (some return NULL, some not); and it's
      dangerous either way.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4690 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      90847fc8
  27. 20 Aug, 2006 2 commits