Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pna user signal handler

2 views
Skip to first unread message

ephlodur

unread,
Sep 19, 2007, 6:38:44 PM9/19/07
to
Hello All,

can any body help to define a user signal handler for pNA. So far, I
have use the blow code in the sys_config.h but it doest not compile

extern void user_signal_hndlr(int evn,int tid, int sd);
#define NC_SIGNAL ((void*)user_signal_hndlr) /* pNA+ Signal
Hdlr */

thanks for any help

Martin Raabe

unread,
Sep 23, 2007, 3:39:35 PM9/23/07
to
Hello ephlodur,

ephlodur schrieb:

This seems to be a C-language problem.

E.g. see the KC_FATAL handler definition like
extern void MyHandler();
#define KC_FATAL ((void (*) ()) MyHandler

Hope it helps.

--
BaSystem Martin Raabe
E: Martin.Raabe<at>B-a-S-y-s-t-e-m<dot>de

ephlodur

unread,
Sep 24, 2007, 10:24:43 AM9/24/07
to
On Sep 23, 3:39 pm, Martin Raabe <Martin.Raabe@NOSPAM_BaSystem.de>
wrote:

Thank you very much for your reply..

I have tried the syntax that you propose and the one that I have used
but none of them work...
In one case the system dont complile at all and the second case it
compile but no signal.
I have a 3 nodes system and the NC_SIGNAL is define at 2 places in the
sys_config.h. In the
first instance if I set the NC_SIGNAL to point to the user signal it
will not compile. The second
instance the system compile but no signal are generated when the
server close the socket.

Thanks for your help

0 new messages