tree-wide: (void)ify some setsid() and related calls

This commit is contained in:
Lennart Poettering 2018-11-26 16:17:24 +01:00
parent 0672e2c6f8
commit ece0fe12ad
2 changed files with 3 additions and 3 deletions

View File

@ -451,8 +451,8 @@ int main(int argc, char *argv[]) {
if (r >= 0) {
argv[0] = (char*) "/shutdown";
setsid();
make_console_stdio();
(void) setsid();
(void) make_console_stdio();
log_info("Successfully changed into root pivot.\n"
"Returning to initrd...");

View File

@ -1850,7 +1850,7 @@ static int run(int argc, char *argv[]) {
return 0;
/* child */
setsid();
(void) setsid();
r = set_oom_score_adjust(-1000);
if (r < 0)