The puppet module build command also hangs indefinitely if a socket or FIFO is included in the /files directory of the module being built. This appears to be the result of the command trying to copy an infinitely large file into the package. A better solution would be for the command to either skip or error out if a socket or FIFO is encountered.