]> granicus.if.org Git - apache/commit
2.0 builds, but dumps core on FreeBSD 3.3 (ap_lock).
authorBill Stoddard <stoddard@apache.org>
Wed, 23 Feb 2000 15:37:37 +0000 (15:37 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 23 Feb 2000 15:37:37 +0000 (15:37 +0000)
commit151d004b7d3d071355ae3adf5de1b8be25b852d9
tree145cd72c9b5d0d39a4e2a391b198f1840075702f
parente3b52cc47fed68f4ae0d38fffe89de5c91ec2239
2.0 builds, but dumps core on FreeBSD 3.3 (ap_lock).

Basically, ap_initialize() needs to get called before create_process(),
since create_process() passes op_on structure to semop() to get a lock, but
op_on isn't initialized until ap_initialize() calls setup_lock().  Here is
a slight rearrangement to main() which calls ap_initialize() earlier...

Submitted by: Jeff Trawick <trawick@us.ibm.com>
Reviewed by: Bill Stoddard <stoddard@us.ibm.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84661 13f79535-47bb-0310-9956-ffa450edef68
server/main.c