Have you verified that this all works correctly when running beaker on a linux machine as well as a mac? The last time we tried to use posix functions directly it didn't work so well.