Hi,

> I replaced shutdown with close ( both of them, in get_xpath and in
> startDaemon ) , but still the same problem.

I read some mail from archives and it looks like there are soemtimes
problems with HP-UX and sockets but nobody determined the source fo the
trouble. I think the best solution would be select call to check the
socket (it must be readable or closed).

// prepare the socket vector for select
my $rin = '';
vec($rin,fileno(STDIN),1) = 1;
// prepare the return vectors from select
my $eout = '';
my $rout = '';
// first select
// second readable data and no error
// third read
while ((select ($rout=$rin, '', $eout=$rin) and
       $rout and not $eout
       (my $length = read (SOCK, $line, 1024))
{
    // do something
}

I cannot test this before tomorrow. You can only try to implement and test
it by yourself but if normal read fails then the possibility of a failing
select is very high too.

Michael
-- 
Michael Bell
Humboldt-Universitaet zu Berlin

-- 
Michael Bell
Humboldt-Universitaet zu Berlin



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to