in reply to Re: multiple fork()
in thread multiple fork()

Don't I have to recompile my perl binary to support threading in order to use Async? I suppose this is doable, but then it means my code is even less portable than it already is using the telnet module.

Replies are listed 'Best First'.
Re (tilly) 3: multiple fork()
by tilly (Archbishop) on Apr 16, 2001 at 21:07 UTC
    The comment about a "separate process" makes me think that it is using fork. (Which is certainly how I would write it.) So you should not need to recompile, but you may have some problems on Windows. (Try it.)

    UPDATE
    Follow Dominus' link above for the Perl module under discussion...

      I don't need to worry about Windows, since it's all running on a solaris box. However, my "Network Programming with Perl" book says that the async function is used to create a thread object. Perhaps there is a separate perl module called Async as well. Hmm.. dunno. I'll look around.
Re: multiple fork()
by Dominus (Parson) on Apr 16, 2001 at 22:46 UTC
    Says Galen:
    Don't I have to recompile my perl binary to support threading in order to use Async?
    No; Async uses fork, which I believe is what you were asking for.

    Happy Bicycle Day!

    --
    Mark Dominus
    Perl Paraphernalia