tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Portable way for testing listening sockets

Hi everyone,

I got a package (apache-solr) for which I need a portable, sh-posixish
way of testing for the presence of a listening socket. FreeBSD "fixed"
it by patching over lsof and use their sockstat(1) instead:

I'd like to avoid this in the pkg. What would be the acceptable form for
this, considering that even sockstat(1) syntax can differ from one OS to

Having lsof in DEPENDS just for this seems kind of overkill.


Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index