]> Zhao Yanbai Git Server - minix.git/commitdiff
Make bios driver get messages for SIGTERM.
authorBen Gras <ben@minix3.org>
Sat, 22 Oct 2005 10:52:04 +0000 (10:52 +0000)
committerBen Gras <ben@minix3.org>
Sat, 22 Oct 2005 10:52:04 +0000 (10:52 +0000)
drivers/bios_wini/bios_wini.c

index 44c2ef29a534db9495524f4c31716c160aed42fb..de01a9f71c4a3f7c9f39d05f7a4050cc58c2c161 100644 (file)
@@ -97,6 +97,13 @@ PRIVATE struct driver w_dtab = {
 PUBLIC int main()
 {
   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;
   env_parse("bios_remap_first", "d", 0, &v, 0, 1);