dazuko-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dazuko-help] Dazuko is loading in the kernel but my application is


From: John Ogness
Subject: Re: [Dazuko-help] Dazuko is loading in the kernel but my application is failing to register with dazuko
Date: Fri, 23 Feb 2007 16:33:37 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

Sharad Durgawad wrote:
> But I want to do this automatically, i.e I want to write a code to
> insert the dazuko module and then register the application. For this I
> am invoking the system function as,
> 
> system("/sbin/insmod dazuko.ko");
> 
> so it is loading but my application is failing to register with dazuko.

You may want to use modprobe instead. (This would mean that the dazuko
kernel module must be "installed" on the system.) Since modprobe is a
bit more "intelligent" than insmod, it may actually wait until the
module has finished initializing before returning.


> To solve this problem, I invoked sleep() function for 6 seconds after
> inserting the module and then tried to register the application. then it
> is working. But I want the solution without sleeping the process for 6
> seconds.

The init routines in Dazuko should be pretty fast. 6 seconds is more
than you probably need. What if your application tried several times at
0.1 second intervals?


> Because till that time my remote application on another machine
> wating for the respone will shut down.

If Dazuko needs several seconds to initialize on your machine, your
application won't be able to do anything about it. I would suggest
making your applications more tolerant for delays.

John Ogness

-- 
Dazuko Maintainer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]