implement LPT locking which will be used early on boot
This commit is contained in:
parent
7bddf7353e
commit
828d9323cc
18
yasnd.c
18
yasnd.c
@ -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 */
|
/* Our process ID and Session ID */
|
||||||
pid_t pid, sid;
|
pid_t pid, sid;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user