From: Ben Gras Date: Sat, 22 Oct 2005 10:52:04 +0000 (+0000) Subject: Make bios driver get messages for SIGTERM. X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=2ccb1528afe5c1a72dbf82eaa155c89afa15dada;p=minix.git Make bios driver get messages for SIGTERM. --- diff --git a/drivers/bios_wini/bios_wini.c b/drivers/bios_wini/bios_wini.c index 44c2ef29a..de01a9f71 100644 --- a/drivers/bios_wini/bios_wini.c +++ b/drivers/bios_wini/bios_wini.c @@ -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);