implement LPT locking which will be used early on boot

This commit is contained in:
Sergey Popov 2011-12-31 11:43:17 +04:00
parent 7bddf7353e
commit 828d9323cc

18
yasnd.c
View File

@ -330,7 +330,23 @@ void signal_handler(int signum)
}
}
int main(void) {
void arg_parse(int argc, char *argv[])
{
for (int i=0;i<argc;i++)
{
if (strcmp(argv[i],"--init")==0)
{
lpt_lock();
exit(EXIT_SUCCESS);
}
}
}
int main(int argc, char *argv[])
{
// Parse command line arguments
arg_parse(argc,argv);
/* Our process ID and Session ID */
pid_t pid, sid;