Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Obscure IO::Socket poop under a chroot Help Help Help!

by ferrency (Deacon)
on Jul 11, 2002 at 20:28 UTC ( #181134=note: print w/replies, xml ) Need Help??


in reply to Re: Obscure IO::Socket poop under a chroot Help Help Help!
in thread Obscure IO::Socket getprotobyname problem under a chroot

If you want to be extremely anal about this, you could do your own getprotobyname before you chroot(), and use the value it returns instead of hardcoding a "6" (or whatever).

It may not make sense for your particular application, but you may also be able to open your listening socket first, and then chroot.

Alan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181134]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-11-17 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (86 votes). Check out past polls.

    Notices?