PR54000: Avoid a 1 second sleep when spawning a wrapper.
Typo in fcgid_pm_unix.c. We were not checking for the result code of the spawn process but its length.
fcgid_pm_win. c not affected.
git-svn-id: https://svn.apache.org/repos/asf/httpd/mod_fcgid/trunk@1397778 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES-FCGID b/CHANGES-FCGID
index e980d43..2e01c2c 100644
--- a/CHANGES-FCGID
+++ b/CHANGES-FCGID
@@ -11,6 +11,9 @@
when in FCGI_AUTHORIZER mode, as the auth hook functions already
treat Location headers returned by scripts as an error since
redirections are not meaningful in this mode. [Chris Darroch]
+
+ *) Avoid a 1 s sleep when spawning wrapper. PR 54000
+ [Bartosz Kwitniewski <zerg2000-apachebug astral org pl>]
Changes with mod_fcgid 2.3.7
diff --git a/modules/fcgid/fcgid_pm_unix.c b/modules/fcgid/fcgid_pm_unix.c
index 18906b5..3c4fee0 100644
--- a/modules/fcgid/fcgid_pm_unix.c
+++ b/modules/fcgid/fcgid_pm_unix.c
@@ -486,7 +486,7 @@
ap_log_rerror(APLOG_MARK, APLOG_WARNING, rv, r,
"mod_fcgid: can't get notify from process manager");
result = rv;
- } else if( nbytes!=PROCMGR_PROC_CREATED )
+ } else if( notifybyte!=PROCMGR_PROC_CREATED )
result = APR_CHILD_NOTDONE;
}