P
patrik.xx.hoiem-flyckt
Hi,
I have a problem that you might help me with. I have a client app made
in perl/tk that speaks with a server (RPC:lServer, built on
Net:aemon). This server forks a process per product type (PT). You
can run different perl scripts for each PT (to test the PT). Since
RPC:lClient makes synchronous calls, I want to either thread or fork
a process while running scripts for the PTs, since the scripts can
take several hours to run. Otherwise the client will get locked during
this time. I have tried a threaded solution and a forked solution and
they work fine as long as I don't have to share anything. But I have a
session object, containing session variables that I have to get back
from the child process after it's finished. I've tried threads::shared
(I get: LogHandler not of correct type or something like that) with no
success and IPC::Shareable in the forked solution with no success ( I
get: Could not create semaphore set: No space left on device). Is
there any good documentation about these different solutions out
there? Can someone point me (to anything else than the CPAN info)?
Well I've searched the net and haven't found anything that has shed
light on this. Well I've read something about the semaphore fault...
If you need more info don't hesitate to ask me. I'm on Solaris by the
way.
Regards
I have a problem that you might help me with. I have a client app made
in perl/tk that speaks with a server (RPC:lServer, built on
Net:aemon). This server forks a process per product type (PT). You
can run different perl scripts for each PT (to test the PT). Since
RPC:lClient makes synchronous calls, I want to either thread or fork
a process while running scripts for the PTs, since the scripts can
take several hours to run. Otherwise the client will get locked during
this time. I have tried a threaded solution and a forked solution and
they work fine as long as I don't have to share anything. But I have a
session object, containing session variables that I have to get back
from the child process after it's finished. I've tried threads::shared
(I get: LogHandler not of correct type or something like that) with no
success and IPC::Shareable in the forked solution with no success ( I
get: Could not create semaphore set: No space left on device). Is
there any good documentation about these different solutions out
there? Can someone point me (to anything else than the CPAN info)?
Well I've searched the net and haven't found anything that has shed
light on this. Well I've read something about the semaphore fault...
If you need more info don't hesitate to ask me. I'm on Solaris by the
way.
Regards