saltstack/salt — pull request #3036 by s0undt3ch (2012-12-27 10:46:36+00:00)
Title: Properly avoid "File name too long" ZMQ exceptions.

Properly avoid "File name too long" ZMQ exceptions. Refs #3026, #2044 and #2926.

We do a proper length check when using the sockets in IPC mode and fail when it reaches 103 which is the lower value for this error on BSD systems, Linux and Solaris is 107. We just exit the master/minion since continuing would mean leaving it crippled.