diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-07-26 16:51:15 +0000 |
commit | 9fa9eb9ac7bf1d3de825ee25a8f0ae81b7b77896 (patch) | |
tree | 9b071a8105704e992946dcd6b801e9fcb7635142 /audio/quimup/files/patch-src_qm__mpdcom.cpp | |
parent | MooseFS is a Fault tolerant, High Available, Highly Performing, Scale-Out, (diff) |
Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.
With hat: portmgr
Sponsored by: Absolight
Diffstat (limited to 'audio/quimup/files/patch-src_qm__mpdcom.cpp')
-rw-r--r-- | audio/quimup/files/patch-src_qm__mpdcom.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/quimup/files/patch-src_qm__mpdcom.cpp b/audio/quimup/files/patch-src_qm__mpdcom.cpp new file mode 100644 index 000000000000..d2630be2ebd3 --- /dev/null +++ b/audio/quimup/files/patch-src_qm__mpdcom.cpp @@ -0,0 +1,22 @@ +--- src/qm_mpdcom.cpp.orig 2016-02-28 09:52:46 UTC ++++ src/qm_mpdcom.cpp +@@ -2500,17 +2500,10 @@ bool qm_mpdCom::is_mpd_running() + struct stat sts; + bool b_isrunning = false; + +- // try pidof +- if (stat("/bin/pidof", &sts) == 0) +- { +- if( system("pidof mpd > /dev/null") == 0) +- b_isrunning = true; +- } +- else + // try pgrep +- if (stat("/usr/bin/pgrep", &sts) == 0) ++ if (stat("/bin/pgrep", &sts) == 0) + { +- if( system("pgrep mpd > /dev/null") == 0) ++ if( system("pgrep musicpd > /dev/null") == 0) + b_isrunning = true; + } + |