mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-05 20:58:29 +02:00
Format files according to clang-format
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:

committed by
afayaz-feral

parent
5e366bd55d
commit
6c60565f33
@@ -133,12 +133,9 @@ static void daemonize(const char *name)
|
||||
int devnull_r = open("/dev/null", O_RDONLY);
|
||||
int devnull_w = open("/dev/null", O_WRONLY);
|
||||
|
||||
if (devnull_r == -1 || devnull_w == -1)
|
||||
{
|
||||
if (devnull_r == -1 || devnull_w == -1) {
|
||||
LOG_ERROR("Failed to redirect standard input and output to /dev/null\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
dup2(devnull_r, STDIN_FILENO);
|
||||
dup2(devnull_w, STDOUT_FILENO);
|
||||
dup2(devnull_w, STDERR_FILENO);
|
||||
|
Reference in New Issue
Block a user