mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
Add -Wundef to make #if FOO an error if not defined
This commit has all the straightforward stuff.
This commit is contained in:
parent
d81cd04d23
commit
5c90b41715
23 changed files with 40 additions and 33 deletions
|
@ -78,7 +78,7 @@ int Pid::kill()
|
|||
/* On BSDs, killing a process group will return EPERM if all
|
||||
processes in the group are zombies (or something like
|
||||
that). So try to detect and ignore that situation. */
|
||||
#if __FreeBSD__ || __APPLE__
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
if (errno != EPERM || ::kill(pid, 0) != 0)
|
||||
#endif
|
||||
logError(SysError("killing process %d", pid).info());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue