mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 14:59:20 +02:00
Handle failure path better.
This commit is contained in:
@@ -47,6 +47,9 @@ int system1(char const *cmd)
|
||||
set_cloexec(stdin_dup);
|
||||
}
|
||||
(void) close(devnull);
|
||||
} else {
|
||||
(void) close(stdin_dup);
|
||||
stdin_dup = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user