Make bios driver get messages for SIGTERM.
This commit is contained in:
parent
e0e0a14b23
commit
2ccb1528af
@ -97,6 +97,13 @@ PRIVATE struct driver w_dtab = {
|
|||||||
PUBLIC int main()
|
PUBLIC int main()
|
||||||
{
|
{
|
||||||
long v;
|
long v;
|
||||||
|
struct sigaction sa;
|
||||||
|
|
||||||
|
sa.sa_handler = SIG_MESS;
|
||||||
|
sigemptyset(&sa.sa_mask);
|
||||||
|
sa.sa_flags = 0;
|
||||||
|
if (sigaction(SIGTERM,&sa,NULL)<0) panic("at_wini","sigaction failed", errno);
|
||||||
|
signal(SIGTERM, SIG_IGN);
|
||||||
|
|
||||||
v= 0;
|
v= 0;
|
||||||
env_parse("bios_remap_first", "d", 0, &v, 0, 1);
|
env_parse("bios_remap_first", "d", 0, &v, 0, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user