diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ulogd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ulogd.c b/src/ulogd.c index e69079d..ead35b5 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -1129,7 +1129,13 @@ int main(int argc, char* argv[]) } } - nice(-1); + errno = 0; + if (nice(-1) == -1) { + if (errno != 0) + ulogd_log(ULOGD_ERROR, "Could not nice process: %s\n", + strerror(errno)); + } + if (daemonize){ if (fork()) { |