summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/webmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/httpd/webmain.c')
-rw-r--r--cpukit/httpd/webmain.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/httpd/webmain.c b/cpukit/httpd/webmain.c
index f61b649ced..9f467b5167 100644
--- a/cpukit/httpd/webmain.c
+++ b/cpukit/httpd/webmain.c
@@ -113,8 +113,10 @@ rtems_httpd_daemon()
/*
* Initialize the web server
*/
- if (initWebs() < 0) {
- rtems_panic("Unable to initialize Web server !!\n");
+ while (initWebs() < 0) {
+ printf("\nUnable to initialize Web server !!\n"
+ " Suspending the task. Resume to try again.\n");
+ rtems_task_suspend( RTEMS_SELF);
}
/*
@@ -137,7 +139,7 @@ rtems_httpd_daemon()
memLeaks();
#endif
bclose();
- rtems_task_delete( RTEMS_SELF );
+ rtems_task_delete( RTEMS_SELF );
}
/******************************************************************************/