From 3718832a1542f7bf786a1678741b8566ad3a35c6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 16 Feb 2008 13:20:56 +0000 Subject: *: more readable handling of pipe fds. No code changes. --- networking/httpd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'networking/httpd.c') 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( const char *cookie, const char *content_type) { - struct { int rd; int wr; } fromCgi; /* CGI -> httpd pipe */ - struct { int rd; int wr; } toCgi; /* httpd -> CGI pipe */ + struct fd_pair fromCgi; /* CGI -> httpd pipe */ + struct fd_pair toCgi; /* httpd -> CGI pipe */ char *fullpath; char *script; char *purl; @@ -1396,8 +1396,8 @@ static void send_cgi_and_exit( if (referer) setenv1("HTTP_REFERER", referer); - xpipe(&fromCgi.rd); - xpipe(&toCgi.rd); + xpiped_pair(fromCgi); + xpiped_pair(toCgi); pid = vfork(); if (pid < 0) { -- cgit v1.2.3