mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 22:59:51 +02:00
Log stream state as string
This commit is contained in:
parent
178888a512
commit
1725cffc6e
5 changed files with 25 additions and 5 deletions
|
@ -72,7 +72,7 @@ namespace strutils = utils::string;
|
|||
#ifndef WINDOWS
|
||||
static std::string execGetOutput(const std::string& cmd)
|
||||
{
|
||||
std::shared_ptr<FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"), pclose);
|
||||
std::shared_ptr<::FILE> pipe(popen((cmd + " 2> /dev/null").c_str(), "r"), pclose);
|
||||
if (!pipe)
|
||||
return "";
|
||||
char buffer[1024];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue