in reply to Re: How a web server sending data to a CGI perl script ?
in thread How a web server sending data to a CGI perl script ?
if ( $pid == 0 ) { close $input_to_child; close $output_from_child; if ( fileno $child_stdout != POSIX::STDOUT_FILENO ) { POSIX::dup2( fileno $child_stdout, POSIX::STDOUT_FILENO ); close $child_stdout; } if ( fileno $child_stdin != POSIX::STDIN_FILENO ) { POSIX::dup2( fileno $child_stdin, POSIX::STDIN_FILENO ); close $child_stdin; } exec {'perl'} 'perl', 'client.pl'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How a web server sending data to a CGI perl script ?
by Anonymous Monk on Jan 21, 2016 at 14:50 UTC |