Subject: | |
From: | |
Reply To: | |
Date: | Wed, 20 Jun 2001 08:26:18 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Peter Osborne wrote:
> Second, this one is probably for Mark, after compiling mod_fastcgi as a DSO &
> installing it, when I run Apache, it gives me unresolved externals on
> "setresuid" & "nice", where to I find these to fix the problem.
MPE only has setuid(), not setresuid(). You'll need to look at the surrounding
source code to determine the correct solution. Some apps call the setxxxuid
functions just out of paranoia, and in the case the best solution might be to
simply not compile the function call on MPE, i.e.:
#ifndef mpeix
setresuid(nnn);
#endif
But if you really do need to change uids, be aware then setuid() requires
priv-mode:
#ifdef mpeix
GETPRIVMODE();
setuid(nnn);
GETUSERMODE();
#endif
There is no nice() function on MPE, so just omit it from the compile:
#ifndef mpeix
nice(nnn);
#endif
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|