On Jun 6, 7:33pm, [EMAIL PROTECTED] wrote:
> Synopsis: Support of UTS 2.1.2 is broken
>
> State-Changed-From-To: open-feedback
> State-Changed-By: dgaudet
> State-Changed-When: Sat Jun 6 12:33:30 PDT 1998
> State-Changed-Why:
> Cool. I modified NDELAYPIPERETURNSZERO to NDELAY_PIPE_RETURNS_ZERO
> which is more in style of our other defines. I also replaced
> your NEED_POUND_BANG with NEED_HASHBANG_EMUL... there is code
> for that already in ap/ap_execve.c. Could you take a look at
> a snapshot and tell me if it works for you?
>
> Thanks
> Dean
Yes, looks good. I initially implemented NEED_POUND_BANG on apache 1.2.5
and didn't notice NEED_HASHBANG_EMUL when I merged it into 1.3. Good catch.
In addition to the change to findprg.sh which I reported under
"config/2319", there is one other small change I need. I should have been
able to send this in to you before, but I hadn't tested the last change
before I sent it in, which was changing the type of reap_children's "status"
parameter from "int *" to "ap_wait_t *". Below's the fix.
After that, apache 1.3.1 can claim to work on UTS 2.1.2. For the record,
I am not using the standard compiler on UTS 2.1.2, I am using an add-on
compiler that can handle ansi C and which has a "-V" that says
Amdahl C Driver Version 2.75 (8/4/94)
Also, that compiler gets some sort of bizarre error in the assembly phase
on mod_include.c, so I have been using configure --disable-module=include.
I don't need server-side includes anyway, and as far as I know that compiler
bug may have been fixed in a later release.
- Dave Dykstra
*** src/main/http_main.c.O Mon Jun 8 13:24:51 1998
--- src/main/http_main.c Mon Jun 8 13:32:33 1998
***************
*** 2144,2150 ****
kill((pid = ap_scoreboard_image->parent[n].pid), 0) == -1) {
ap_update_child_status(n, SERVER_DEAD, NULL);
/* just mark it as having a successful exit status */
! *status = 0;
return(pid);
}
}
--- 2144,2150 ----
kill((pid = ap_scoreboard_image->parent[n].pid), 0) == -1) {
ap_update_child_status(n, SERVER_DEAD, NULL);
/* just mark it as having a successful exit status */
! bzero((char *) status, sizeof(ap_wait_t));
return(pid);
}
}