[Bug 55790] mod_fcgid lockfile hardcoded to be in /tmp

2017-12-08 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=55790

Joe Orton  changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Joe Orton  ---
That code is specific to 2.2, with 2.4 you can configure it using Mutex:

https://httpd.apache.org/docs/2.4/mod/core.html#mutex

"Mutex fcgid-pipe ..." and "Mutex fcgid-proctbl ..."

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 55790] mod_fcgid lockfile hardcoded to be in /tmp

2017-12-07 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=55790

Mario  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #1 from Mario  ---
is this still relevant? On Linux it uses the log folder from apache.


modules/fcgid/fcgid_mutex_unix.c:117:lockfile = apr_palloc(pconf,
L_tmpnam);
modules/fcgid/fcgid_mutex_unix.c:118:tmpnam(lockfile);

srclib/apr/file_io/unix/tempdir.c:62:  P_tmpdir  (POSIX define)
srclib/apr/file_io/unix/tempdir.c:104:#ifdef P_tmpdir
srclib/apr/file_io/unix/tempdir.c:109:if (test_tempdir(P_tmpdir, p)) {
srclib/apr/file_io/unix/tempdir.c:110:dir = P_tmpdir;


>From line 50

/* Our goal is to find a temporary directory suitable for writing
   into.
   Here's the order in which we'll try various paths:

  $TMPDIR
  $TMP
  $TEMP
  "C:\TEMP" (windows only)
  "SYS:\TMP"(netware only)
  "/tmp"
  "/var/tmp"
  "/usr/tmp"
  P_tmpdir  (POSIX define)
  `pwd`

   NOTE: This algorithm is basically the same one used by Python
   2.2's tempfile.py module.  */

/* Try the environment first. */

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org