monitor: Fail on invalid command line parameters

This commit is contained in:
Marcel Holtmann 2013-10-02 20:46:06 -07:00
parent d5bd1b1411
commit c287f304df

View File

@ -137,6 +137,11 @@ int main(int argc, char *argv[])
}
}
if (argc - optind > 0) {
fprintf(stderr, "Invalid command line parameters\n");
return EXIT_FAILURE;
}
sigemptyset(&mask);
sigaddset(&mask, SIGINT);
sigaddset(&mask, SIGTERM);