[DGD] Kernel suggestion

Blain blain20 at gmail.com
Mon Feb 6 04:54:35 CET 2017


static string editor(varargs string cmd)
{
...
    catch {
        rlimits (-1; -1) {
            rsrcd = ::find_object(RSRCD);
            if (!query_editor(this_object())) {
                ::find_object(USERD)->add_editor(this_object());
            }
            driver = ::find_object(DRIVER);

            TLSVAR(1) = nil;
            result = (cmd) ? ::editor(cmd) : ::editor();
>            if(typeof(TLSVAR(1)) == T_STRING)
>              error(TLSVAR(1));
            info = TLSVAR(1);

            if (!query_editor(this_object())) {
                ::find_object(USERD)->remove_editor(this_object());
            }
            if (info) {
                rsrcd->rsrc_incr(driver->creator(info[0]), "fileblocks",
nil,
                                 driver->file_size(info[0]) - info[1]);
            }
        }
    } : error(TLSVAR(1));
    return result;
}


That'll make the error more meaningful.  As it stands, the assignment of
string *info to string TLSVAR(1) didn't point me to an error in
editorobj->path_read(). ;)



More information about the DGD mailing list