Commit 95d1c15a authored by Daniel Salzman's avatar Daniel Salzman

knotd: add check for non-option parameters

refs #171
parent 361104ae
......@@ -158,6 +158,12 @@ int main(int argc, char **argv)
}
}
// Check for non-option parameters.
if (argc - optind > 0) {
help();
return 1;
}
// Now check if we want to daemonize
if (daemonize) {
if (daemon(1, 0) != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment