diff vordog.c @ 12:6bfd60bcd7b8

disable timer when shuting down
author Thinker K.F. Li <thinker@branda.to>
date Wed, 09 Jul 2008 04:40:09 +0800
parents 3968bbb5303d
children e4e6727f530f
line wrap: on
line diff
--- a/vordog.c	Wed Jul 09 00:57:33 2008 +0800
+++ b/vordog.c	Wed Jul 09 04:40:09 2008 +0800
@@ -354,6 +354,7 @@
 	vordog_go_detach();	/* remove device from parent */
 	break;
     case MOD_SHUTDOWN:
+	disable_timer();	/* prevent system reset when shuting down */
 	break;
     default:
 	r = EINVAL;