1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

cgi: set_nonblocking_fd

[ This is part of commit 71adb0e6cc
  from the witekfl branch.  The SMB part is in commit
  36477ffa45, and the FSP part is
  in commit 93f3dc3bbf.  --KON ]
This commit is contained in:
Witold Filipczyk 2007-01-25 16:51:49 +01:00 committed by Kalle Olavi Niemitalo
parent d341483639
commit 2828d587b2

View File

@ -385,6 +385,8 @@ execute_cgi(struct connection *conn)
/* Use data socket for passing the pipe. It will be cleaned up in
* close_pipe_and_read(). */
conn->data_socket->fd = pipe_read[1];
set_nonblocking_fd(conn->socket->fd);
set_nonblocking_fd(conn->data_socket->fd);
send_request(conn);
return 0;