Changes to the storage API
Russ Allbery
rra at stanford.edu
Sat Feb 24 20:07:33 UTC 2001
Marco d'Itri <md at Linux.IT> writes:
> On Feb 24, Russ Allbery <rra at stanford.edu> wrote:
>> if (!SMsetup(SM_RDWR, &flag) || !SMsetup(SM_PREOPEN, &flag))
>> die("SERVER cant set up storage manager");
>> if (!SMinit())
>> die("SERVER cant initalize storage manager: %s", SMerrorstr);
>> SMinit(SM_RDWR | SM_PREOPEN);
>> Opinions?
> What about error reporting?
Same as before. If SMinit returns false, SMerrorstr has the error
message. Sorry, didn't show that well; that should have been:
if (!SMinit(SM_RDWR | SM_PREOPEN))
die("SERVER cant initialize storage manager: %s", SMerrorstr);
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list