summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/uemf.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:38:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-30 12:38:25 +0000
commite8fd6336c1e837b2047f3b0ba2dd53056eeb13c5 (patch)
tree1b74df2836b394b99362f62f642ae28ac95d840c /cpukit/httpd/uemf.c
parentPatch from Chris Johns <cjohns@cybertec.com.au> so the directory (diff)
downloadrtems-e8fd6336c1e837b2047f3b0ba2dd53056eeb13c5.tar.bz2
Patch from Chris Johns <cjohns@cybertec.com.au> so the web server
shuts down on error -- not exitting the system.
Diffstat (limited to 'cpukit/httpd/uemf.c')
-rw-r--r--cpukit/httpd/uemf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/httpd/uemf.c b/cpukit/httpd/uemf.c
index a9302f989c..ef7c8f3135 100644
--- a/cpukit/httpd/uemf.c
+++ b/cpukit/httpd/uemf.c
@@ -30,6 +30,10 @@ int emfInst; /* Application instance handle */
void error(E_ARGS_DEC, int flags, char_t *fmt, ...)
{
+ va_list arglist;
+
+ va_start(arglist, fmt);
+
if (flags & E_LOG) {
/* Log error message */
@@ -40,6 +44,9 @@ void error(E_ARGS_DEC, int flags, char_t *fmt, ...)
/* Display message to the user */
}
+
+ vprintf (fmt, arglist);
+ va_end(arglist);
}
/******************************************************************************/