unix: show zero-value stats for idle listeners
commit5c62376bc9a1b0d7c8e664784a1fb97747a7c392
authorEric Wong <normalperson@yhbt.net>
Wed, 13 Jun 2012 01:29:00 +0000 (12 18:29 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 13 Jun 2012 01:29:00 +0000 (12 18:29 -0700)
tree4f1fe250ca670465dc9576e9a73b3ce79105394f
parent506df98df1dae59281fbb3b3c2c6bea7549a2288
unix: show zero-value stats for idle listeners

When unix_listener_stats is called without arguments, it should
still match the behavior of tcp_listener_stats and return
ListenerStats object with zero values.

This allows callers to iterate through the results to find the
pathnames of all the Unix domain sockets in in listen mode.
lib/raindrops/linux.rb
test/test_linux.rb