bitcoin/bitcoin — pull request #4358 by laanwj (2014-06-17 07:17:04+00:00)
Title: Avoid errors during RPC cancel

Cancelling the RPC acceptors can sometimes result in an error about a bad file descriptor.

As this is the shutdown sequence we need to continue nevertheless, ignore these errors, log a warning and proceed.

As suggested by @theuni.

Fixes #4352.