summaryrefslogtreecommitdiff
path: root/overlay/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/overlay.c')
-rw-r--r--overlay/overlay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/overlay.c b/overlay/overlay.c
index 035e02c6..3c0dbb44 100644
--- a/overlay/overlay.c
+++ b/overlay/overlay.c
@@ -910,8 +910,8 @@ int main(int argc, char **argv)
if (daemonize && daemon(0, 0))
return EINVAL;
- if (renice)
- nice(renice);
+ if (renice && (nice(renice) == -1))
+ fprintf(stderr, "Could not renice: %s\n", strerror(errno));
signal(SIGUSR1, signal_snapshot);