"Whistling" onboard a Royal Navy ship was, and I believe still is a sign of mutiny. "Whistling" onboard a Merchant Navy ship was considered to be bad luck, something to do with whistling up a storm. Singing would normally only be permitted after the pipe was made "Hands to sky-lark and dance".