aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-16 13:20:56 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-16 13:20:56 +0000
commit3718832a1542f7bf786a1678741b8566ad3a35c6 (patch)
treeac5851de53237fb3a0c77c9cead27acd279897f0 /networking/httpd.c
parent1e18f1bab3400246129756a35bb5752ba98f4c90 (diff)
downloadbusybox-w32-3718832a1542f7bf786a1678741b8566ad3a35c6.tar.gz
busybox-w32-3718832a1542f7bf786a1678741b8566ad3a35c6.tar.bz2
busybox-w32-3718832a1542f7bf786a1678741b8566ad3a35c6.zip
*: more readable handling of pipe fds. No code changes.
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 1ac49e7a2..2c580b032 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1305,8 +1305,8 @@ static void send_cgi_and_exit(
1305 const char *cookie, 1305 const char *cookie,
1306 const char *content_type) 1306 const char *content_type)
1307{ 1307{
1308 struct { int rd; int wr; } fromCgi; /* CGI -> httpd pipe */ 1308 struct fd_pair fromCgi; /* CGI -> httpd pipe */
1309 struct { int rd; int wr; } toCgi; /* httpd -> CGI pipe */ 1309 struct fd_pair toCgi; /* httpd -> CGI pipe */
1310 char *fullpath; 1310 char *fullpath;
1311 char *script; 1311 char *script;
1312 char *purl; 1312 char *purl;
@@ -1396,8 +1396,8 @@ static void send_cgi_and_exit(
1396 if (referer) 1396 if (referer)
1397 setenv1("HTTP_REFERER", referer); 1397 setenv1("HTTP_REFERER", referer);
1398 1398
1399 xpipe(&fromCgi.rd); 1399 xpiped_pair(fromCgi);
1400 xpipe(&toCgi.rd); 1400 xpiped_pair(toCgi);
1401 1401
1402 pid = vfork(); 1402 pid = vfork();
1403 if (pid < 0) { 1403 if (pid < 0) {