Skip to content
Snippets Groups Projects
Commit 95d1c15a authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knotd: add check for non-option parameters

refs #171
parent 361104ae
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment