Mailing List Archive



Back to the month index Back to the list index

MAJCEN Kurt (majcen@przj12.joanneum.ac.at)
Tue, 3 Sep 1996 13:29:15 +0200


Date: Tue, 3 Sep 1996 13:29:15 +0200
Message-Id: <9609031129.AA06235@przj12.joanneum.ac.at>
From: majcen@przj12.joanneum.ac.at (MAJCEN Kurt)
Subject: [mSQL] Using the API-functions

Hello all,

I'd like to repeat the question I mailed some days ago as the answer is very
important for me.

I'm programming an application in C (my part of the work is to programm a
slave-process which will be started from a daemon-process).

As I therefore need to use the API-functions of msql I thought testing these
functions would be a good idea. I wrote a small program which opens an
existing database and closes it again afterwards. Everything seems to be
fine - the program ran.

When I installed the API-functions into my slave-process the problem
started. The function 'msqlConnect' does neither return with any result nor
produce a segmentation fault or anything else (no reaction and the
slave-process is not consuming any time, I think it is waiting for some
reactions). I'm calling this function in both programms (the little test
program and the slave-process) with parameter NULL which means using the
local host.

So my idea was to test this function at the very beginning of the
slave-process because then it should not be influenced by any steps in my
program - but their was no change.

All processes (the little test-program, the daemon of the application (not
msqld) and the slave-process) are started from the same user.

My environment is:

        Operating system: SunOS 5.5.1

        Processor: sparc

        Version Details :-

        msqladmin version 1.0.14
        mSQL connection Localhost via UNIX socket
        mSQL server version 1.0.14
        mSQL protocol version 6
        mSQL TCP socket 1112
        mSQL UNIX socket /dev/msql
        mSQL root user root

I've applied no unofficial patches.

Maybe anyone can tell me why 'msqlConnect' runs in one program and does not
run in another one.

Thanks, in advance
Kurt Majcen
Joanneum Research, AUSTRIA

--------------------------------------------------------------------------
To remove yourself from the Mini SQL mailing list send a message containing
"unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing
"info msql-list" to majordomo@bunyip.com for info on monthly archives of
the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!