summaryrefslogtreecommitdiff
path: root/rquota_svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'rquota_svc.c')
-rw-r--r--rquota_svc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rquota_svc.c b/rquota_svc.c
index 1759a35..6e856bb 100644
--- a/rquota_svc.c
+++ b/rquota_svc.c
@@ -533,7 +533,10 @@ int main(int argc, char **argv)
if (!(flags & FL_NODAEMON)) {
use_syslog();
- daemon(0, 0);
+ if (daemon(0, 0) < 0) {
+ errstr(_("Failed to daemonize: %s\n"), strerror(errno));
+ exit(1);
+ }
}
svc_run();
errstr(_("svc_run returned\n"));