--- parser3/src/main/pa_exec.C 2002/11/20 09:44:43 1.40 +++ parser3/src/main/pa_exec.C 2002/11/20 11:11:11 1.42 @@ -7,7 +7,7 @@ @todo setrlimit */ -static const char* IDENT_EXEC_C="$Date: 2002/11/20 09:44:43 $"; +static const char* IDENT_EXEC_C="$Date: 2002/11/20 11:11:11 $"; #include "pa_config_includes.h" @@ -235,7 +235,8 @@ static int execve_piped(const char *file close(err_fds[1]); } - /* HP-UX SIGCHLD fix goes here, if someone will remind me what it is... */ + /* grabbed this from Apache source: */ + /* HP-UX SIGCHLD fix goes here, if someone will remind me what it is... */ signal(SIGCHLD, SIG_DFL); /* Was that it? */ // chdir to script's directory @@ -419,7 +420,8 @@ from http://www.apache.org/websrc/cvsweb if(pid) { // in child const char *in_cstr=in.cstr(); - write(pipe_write, in_cstr, in.size()); + if(*in) // there is some in data + write(pipe_write, in_cstr, in.size()); close(pipe_write); read_pipe(out, pipe_read, file_spec_cstr, String::UL_AS_IS); close(pipe_read);