don't call synchronizeFile if output goes to socket
Merge pull request #79 from FabianFrank/stdout-socket

don't call synchronizeFile if output goes to socket