Driver init failure not detected

Sean Hinde Sean.Hinde@REDACTED
Mon Oct 29 20:16:55 CET 2001


Hi,

If I have a driver with an init function defined in the driver_entry e.g

static struct driver_entry oci_driver_entry = {
    oci_init,
    oci_start,
    oci_stop,
...
}

and the oci_init function returns -1:

static int oci_init(void)
{
return -1
}

I would expect that the erl_ddll:driver_load/2 call would fail. But it
returns 'ok'

This is not what the documentation says..

Am I doing something wrong here or is it a bug?

Thanks,
Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list