main: use LOG_FATAL to print error when UID is not zero

This commit is contained in:
Miroslav Lichvar 2017-05-24 15:11:33 +02:00
parent 73c548ad01
commit 3a5566c6c3

4
main.c
View file

@ -455,9 +455,7 @@ int main
}
if (getuid() != 0) {
/* This write to the terminal is OK, it comes before we turn into a daemon */
fprintf(stderr,"Not superuser\n");
return 1;
LOG_FATAL("Not superuser");
}
/* Turn into a daemon */