Am Don, 15 Feb 2001 schrieben Sie:
> Hi Olaf,
>
> I do not understand why you destory the fifo immediately after you install
> a handler for it in init_module ? I guess that is might be the problem.
> > int init_module(void)
> > {
> > int ret;
> > size_t sz = 4000;
// kill old fifo if left prior my module loading
> > (void)rtf_destroy(number());
// create it
> > if((ret = rtf_create(number(), sz)) < 0) {
> > ERROR("Error opening RTF%d\n", number());
> > return -1;
> > }
// install handler
> > if((ret = rtf_create_handler(number(), &rtfHandler)) < 0) {
// if it fail destroy the allocated resource and return
> > ERROR("Error installing handler on RTF%d\n", number());
> > (void)rtf_destroy(number());
> > return -1;
> >
> > }
> > return 0;
> > }
I'm to stupid to read the source ??
regards
Olaf