made some enhancements to httpd

This commit is contained in:
2012-02-02 14:48:06 +00:00
parent a782229fa2
commit 681e50822c
9 changed files with 307 additions and 83 deletions

View File

@ -282,6 +282,21 @@ static int test10 (void)
}
static int test11 (void)
{
return pio1 (
#if defined(_WIN32) || defined(__OS2__) || defined(__DOS__)
(const qse_char_t*)"dir /a",
#else
(const qse_char_t*)"ls -laF",
#endif
QSE_NULL,
QSE_PIO_MBSCMD|QSE_PIO_READOUT|QSE_PIO_WRITEIN|QSE_PIO_DROPERR|QSE_PIO_INTONUL|QSE_PIO_SHELL,
QSE_PIO_OUT
);
}
static int test12 (void)
{
qse_env_t* env;
int n;
@ -307,7 +322,7 @@ static int test11 (void)
return n;
}
static int test12 (void)
static int test13 (void)
{
qse_pio_t* pio;
int x;
@ -406,6 +421,7 @@ int main ()
R (test10);
R (test11);
R (test12);
R (test13);
return 0;
}

View File

@ -178,7 +178,7 @@ int httpd_main (int argc, qse_char_t* argv[])
signal (SIGINT, sigint);
signal (SIGPIPE, SIG_IGN);
n = qse_httpd_loop (httpd, 0);
n = qse_httpd_loop (httpd, 1);
signal (SIGINT, SIG_DFL);
signal (SIGPIPE, SIG_DFL);