mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
tree-wide: (void)ify some setsid() and related calls
This commit is contained in:
parent
0672e2c6f8
commit
ece0fe12ad
@ -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...");
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user