mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-30 02:37:15 +02:00
Reformat code
This commit is contained in:
parent
6d2f1a2b3e
commit
be40e66c63
1 changed files with 96 additions and 96 deletions
|
@ -65,9 +65,9 @@ void Daemon::daemonize()
|
||||||
uid_t user_uid = (uid_t)-1;
|
uid_t user_uid = (uid_t)-1;
|
||||||
gid_t user_gid = (gid_t)-1;
|
gid_t user_gid = (gid_t)-1;
|
||||||
std::string user_name;
|
std::string user_name;
|
||||||
#ifdef FREEBSD
|
// #ifdef FREEBSD
|
||||||
bool had_group = false;
|
// bool had_group = false;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
if (!user_.empty())
|
if (!user_.empty())
|
||||||
{
|
{
|
||||||
|
@ -87,9 +87,9 @@ void Daemon::daemonize()
|
||||||
if (grp == nullptr)
|
if (grp == nullptr)
|
||||||
throw SnapException("no such group \"" + group_ + "\"");
|
throw SnapException("no such group \"" + group_ + "\"");
|
||||||
user_gid = grp->gr_gid;
|
user_gid = grp->gr_gid;
|
||||||
#ifdef FREEBSD
|
// #ifdef FREEBSD
|
||||||
had_group = true;
|
// had_group = true;
|
||||||
#endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chown(pidfile_.c_str(), user_uid, user_gid) == -1)
|
if (chown(pidfile_.c_str(), user_uid, user_gid) == -1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue