in reply to Re^3: Trying to thread a daemon with threads and Thread::Queue
in thread Trying to thread a daemon with threads and Thread::Queue
my $tid = threads->tid(); my $fno = $Q->dequeue(); last if $fno eq 'STOP'; $log->warning("Thread ($tid) : fileno: $fno"); open my $socket, '+<&='.$fno or dienice("Thread ($tid) could not reope +n socket: $!");
Which is the "open my $socket, '+<&='.$fno" Line..Thread (1) : fileno: 5 Thread (1) could not reopen socket: Bad file descriptor at line 152
Or this:Thread (2) : fileno: ÆD²©ê Thread (3) : fileno: 5
And the client gets nothing back to its request.Thread (1) : fileno: 5 Thread (2) : fileno: ÆýD²©ê
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Trying to thread a daemon with threads and Thread::Queue
by BrowserUk (Patriarch) on Aug 29, 2008 at 02:32 UTC |