about summary refs log tree commit homepage
path: root/lib/raindrops/middleware
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-06-05 17:49:43 -0700
committerEric Wong <normalperson@yhbt.net>2012-06-05 17:49:43 -0700
commitbd7236fe23c4388d2fa42a4f836aca3c796dabab (patch)
tree68c40ff04e15853d12138d06a34dbb73a3e1389b /lib/raindrops/middleware
parent15dea14dd4e1af97aef928430c3c8ef8c5d74451 (diff)
downloadraindrops-bd7236fe23c4388d2fa42a4f836aca3c796dabab.tar.gz
Teach unix_listener_stats to remember the symlink path
it followed and have it point to the same object as the
resolved (real) socket path.

This allows the case where looking up stats by symlinks
works if the symlink is given to unix_listener_stats:

  File.symlink("/real/path/of.sock", "/path/to/link.sock")
  stats = unix_listener_stats(["/path/to/link.sock"])
  stats["/path/to/link.sock"] => # same as stats["/real/path/of.sock"]
Diffstat (limited to 'lib/raindrops/middleware')
0 files changed, 0 insertions, 0 deletions