httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@Covalent.NET>
Subject mutex problems on Irix 6.2
Date Tue, 23 Jun 1998 06:33:12 GMT

I've got an Irix 6.2 system failing to run Apache because of an EINVAL 
return from the following piece of code. Anyone else have 1.3 running
on Irix 6.2? Setting #define USE_USLOCK_SERIALIZED_ACCEPT seems to
work fine. I'm wondering if this shouldn't be the default for this
version of the OS?

-Randy


if (!getuid()) {
/* restrict it to use only by the appropriate user_id ... not that this 
 * stops CGIs from acquiring it and dinking around with it.
 */
    buf.sem_perm.uid = ap_user_id;
    buf.sem_perm.gid = ap_group_id;
    buf.sem_perm.mode = 0600;
    ick.buf = &buf;
    if (semctl(sem_id, 0, IPC_SET, ick) < 0) {
        perror("semctl(IPC_SET)");
        exit(APEXIT_INIT);
    }
}

Mime
View raw message