chef-boneyard / opscode-pushy-server

Chef Push Jobs Server
https://docs.chef.io/push_jobs.html
Apache License 2.0
16 stars 10 forks source link

Abort when non-SMP environment detected #95

Closed kevsmith closed 10 years ago

kevsmith commented 11 years ago

The NIF message send API is not thread safe in non-SMP Erlang VMs. As a result, erlzmq causes the BEAM to dump core in single-core configurations.

This change detects when the BEAM is running in non-SMP mode, logs a descriptive error message, and then stops the VM.

mpeck commented 11 years ago

It looks pretty straight forward to me. thumbs up

oferrigni commented 11 years ago

LGTM