I'm seeing some surprising (to me) behavior on scf_simple_prop_get, and I 
was looking for an explanation.

say I have some service, and I do
        prop = scf_simple_prop_get(NULL, NULL, "config", "testval");
        if (prop) {
                if ((val = scf_simple_prop_next_boolean(prop)) != NULL)

inside my service's executable.  What happens if svccfg is used to change 
config/testval, the change is not committed via a refresh, but my service 
dies and restarts.

What I expected was that the old, i.e. the running (svcprop -s running -p 
config/testval) state would be returned.  But instead, the current state 
of the repository is returned.  Is this the right behavior?  And is there 
some simple explanation of why I want that in this case, since I guess my 
intuition is way off here.

-- Dave

Reply via email to