Hi Juha,

the initial value is a bitmask and not a flag index. So if you set it to 3, you actually set on the flags 0 and 1. if you want flag 3, set the initial value to 8.

regards,
bogdan

Juha Heinanen wrote:
either i don't understand how gflags are supposed to work or there is a
bug in gflag implementation of trunk.

i have a piece of script:

modparam("gflags", "initial", 3)

        xlog("L_INFO", "Testing gflag 3\n");
        if (is_gflag("3")) {
                xlog("L_INFO", "gflag 3 set\n");

into syslog, i only get

Jul  5 10:47:09 localhost /usr/sbin/openser[6972]: Testing gflag 3

even if mi shows that gflag 3 is set:

# openserctl fifo is_gflag 3
TRUE

am i missing something big time or is there a bug?

-- juha

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to