in reply to Re: Fork and pipe
in thread Fork and pipe

Looking at the documentation, Tk::fileevent would be excellent in my case. However, I cannot get it to work in a noneblocking manner. The execution seems to stop while processing the $mainwindow->fileevent($socket,'readable',[\&some_sub]); line. Have you seen an example with a socket read fileevent callback? (that works on Windows?). Thanks

Replies are listed 'Best First'.
Re: Re: Re: Fork and pipe
by gri6507 (Deacon) on Aug 30, 2002 at 18:18 UTC
    I must retract this statement. The blocking was happening NOT a the fileevent line, but the line just above that, $socket->accept(); (duhhh). I need a break :-)