apache.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --- apache_1.3.28/configure.orig Tue May 21 14:24:59 2002
  2. +++ apache_1.3.28/configure Mon Feb 10 11:08:40 2003
  3. @@ -1216,10 +1216,10 @@
  4. ## or we cannot support the case where the relative
  5. ## path is just the emtpy one, i.e. ""]
  6. ##
  7. -runtimedir_relative=`echo $runtimedir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  8. -logfiledir_relative=`echo $logfiledir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  9. -sysconfdir_relative=`echo $sysconfdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  10. -libexecdir_relative=`echo $libexecdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  11. +runtimedir_relative="$runtimedir/"
  12. +logfiledir_relative="$logfiledir/"
  13. +sysconfdir_relative="$sysconfdir/"
  14. +libexecdir_relative="$libexecdir/"
  15. ##
  16. ## check and debug
  17. --- apache_1.3.28/src/Configure.dist 2003-06-11 11:59:51.000000000 +0200
  18. +++ apache_1.3.28/src/Configure 2003-06-11 12:46:14.000000000 +0200
  19. @@ -1190,14 +1190,20 @@
  20. SHLIB_SUFFIX_DEPTH=0
  21. ;;
  22. *-solaris2*)
  23. - if [ "x`$CC -v 2>&1 | grep gcc`" != "x" ]; then
  24. - CFLAGS_SHLIB="-fPIC"
  25. - else
  26. - CFLAGS_SHLIB="-KPIC"
  27. - fi
  28. + CFLAGS_SHLIB="-KPIC"
  29. LDFLAGS_SHLIB="-G"
  30. - LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  31. LDFLAGS_SHLIB_EXPORT=""
  32. + for word in `$CC -v 2>&1` ; do
  33. + case $word in
  34. + --with-gnu-ld)
  35. + LDFLAGS_SHLIB="-shared"
  36. + ;;
  37. + *gcc*)
  38. + CFLAGS_SHLIB="-fPIC"
  39. + ;;
  40. + esac
  41. + done
  42. + LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  43. SHLIB_SUFFIX_DEPTH=1
  44. ;;
  45. *-sunos4*)
  46. --- apache_1.3.28/src/main/alloc.c.dist 2003-07-29 15:23:08.000000000 +0200
  47. +++ apache_1.3.28/src/main/alloc.c 2003-07-29 15:25:08.000000000 +0200
  48. @@ -2858,13 +2858,11 @@
  49. for (p = procs; p; p = p->next) {
  50. if ((p->kill_how == kill_after_timeout)
  51. || (p->kill_how == kill_only_once)) {
  52. - /* Subprocess may be dead already. Only need the timeout if not. */
  53. - if (ap_os_kill(p->pid, SIGTERM) == -1) {
  54. - p->kill_how = kill_never;
  55. - }
  56. - else {
  57. - need_timeout = 1;
  58. - }
  59. + /* Dead subprocesses still need a waitpid to remove the zombie
  60. + * so we have to ignore errors returned by ap_os_kill()
  61. + */
  62. + ap_os_kill(p->pid, SIGTERM);
  63. + need_timeout = 1;
  64. }
  65. else if (p->kill_how == kill_always) {
  66. kill(p->pid, SIGKILL);