From: Ben Gras Date: Wed, 11 Jul 2007 13:44:00 +0000 (+0000) Subject: Don't quit (some processes want to talk to pci at reboot time) X-Git-Tag: v3.1.4~373 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/zones/static/man.7.txt?a=commitdiff_plain;h=d524b0b3513ddc1b5fcb418c33f611691ee83f1d;p=minix.git Don't quit (some processes want to talk to pci at reboot time) --- diff --git a/drivers/pci/main.c b/drivers/pci/main.c index 6f50de23d..1b44afe6d 100644 --- a/drivers/pci/main.c +++ b/drivers/pci/main.c @@ -18,7 +18,6 @@ PRIVATE struct acl } acl[NR_DRIVERS]; FORWARD _PROTOTYPE( void do_init, (message *mp) ); -FORWARD _PROTOTYPE( void do_sig_handler, (void) ); FORWARD _PROTOTYPE( void do_first_dev, (message *mp) ); FORWARD _PROTOTYPE( void do_next_dev, (message *mp) ); FORWARD _PROTOTYPE( void do_find_dev, (message *mp) ); @@ -78,7 +77,7 @@ int main(void) case BUSC_PCI_SLOT_NAME_S: do_slot_name_s(&m); break; case BUSC_PCI_SET_ACL: do_set_acl(&m); break; case BUSC_PCI_DEL_ACL: do_del_acl(&m); break; - case PROC_EVENT: do_sig_handler(); break; + case PROC_EVENT: break; default: printf("PCI: got message from %d, type %d\n", m.m_source, m.m_type); @@ -89,23 +88,6 @@ int main(void) return 0; } -/*===========================================================================* - * do_sig_handler * - *===========================================================================*/ -PRIVATE void do_sig_handler() -{ - sigset_t sigset; - int sig; - - /* Try to obtain signal set from PM. */ - if (getsigset(&sigset) != 0) return; - - /* Check for known signals. */ - if (sigismember(&sigset, SIGTERM)) { - exit(0); - } -} - PRIVATE void do_init(mp) message *mp; {