[Plugins-writers] script dependencies

From: Skill2Die4 (skill2die4@private)
Date: Fri Mar 12 2004 - 08:15:19 PST

  • Next message: Renaud Deraison: "Re: [Plugins-writers] script dependencies"

    Hi :
    
    While coding  nasl scripts i ran into this problem. The script dependencies
    doesnt seem to work and the "foo.nasl" is being called and executed before
    the "foo_detector.nasl" (Optimize-Test option & Enable script dependencies
    are set)...
    
    foo_detector.nasl
    ==================
    if (! isnull(foo_found)) set_kb_item(name:var_foo, value: TRUE);
    
    foo.nasl
    =========
    script_dependencie("foo_detector.nasl");
    ...
    <snip>
    ...
    
    
    Moreover, the NASL2 manual says,
    " get_kb_item retrieves an entry from the KB.
    ....
    You should not call this function when some connections are open if you
    do not want to see several processes fighting to read or write on the 
    same socket."
    
    Could anyone explain this and shed some light on how to safely implement
    mutex over here...
    
    
    Thanks in advance,
    
    -=skillz=-
    
    _______________________________________________
    Plugins-writers mailing list
    Plugins-writers@private
    http://mail.nessus.org/mailman/listinfo/plugins-writers
    



    This archive was generated by hypermail 2b30 : Fri Mar 12 2004 - 08:16:31 PST