Bugfix: turn on watchdog before starting processes to avoid a process hanging in its startup phase
This commit is contained in:
parent
91afe5b0f4
commit
fc61ee5dbb
1 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-sky-main.c,v 1.76 2010/03/16 15:45:20 joxe Exp $
|
* @(#)$Id: contiki-sky-main.c,v 1.77 2010/03/19 13:28:27 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -392,6 +392,8 @@ main(int argc, char **argv)
|
||||||
energest_init();
|
energest_init();
|
||||||
ENERGEST_ON(ENERGEST_TYPE_CPU);
|
ENERGEST_ON(ENERGEST_TYPE_CPU);
|
||||||
|
|
||||||
|
watchdog_start();
|
||||||
|
|
||||||
print_processes(autostart_processes);
|
print_processes(autostart_processes);
|
||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
|
@ -401,7 +403,7 @@ main(int argc, char **argv)
|
||||||
#if DCOSYNCH_CONF_ENABLED
|
#if DCOSYNCH_CONF_ENABLED
|
||||||
timer_set(&mgt_timer, DCOSYNCH_PERIOD * CLOCK_SECOND);
|
timer_set(&mgt_timer, DCOSYNCH_PERIOD * CLOCK_SECOND);
|
||||||
#endif
|
#endif
|
||||||
watchdog_start();
|
|
||||||
/* watchdog_stop();*/
|
/* watchdog_stop();*/
|
||||||
while(1) {
|
while(1) {
|
||||||
int r;
|
int r;
|
||||||
|
|
Loading…
Reference in a new issue