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