]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind: return a tuple in run_in_thread() if interrupted 11532/head
authorJaveme <javaloveme@gmail.com>
Tue, 18 Oct 2016 12:54:24 +0000 (20:54 +0800)
committerJaveme <javaloveme@gmail.com>
Thu, 20 Oct 2016 08:34:51 +0000 (16:34 +0800)
commitce0d9e41feccce3ff05f9ac5d8fccd110dca42b3
tree64bc76369764cd6b0c635fe3bb7ad04f23df0296
parent55844b24926633b12e535037c02a40a442d1e338
pybind: return a tuple in run_in_thread() if interrupted

Callers expect run_in_thread() to return a tuple, but it
returns an int. When interrupt the function it would raise
an iterable exception.

This patch fix the bug, and it would just output a message
like: "Error EINTR: Interrupted!"

Signed-off-by: Javeme <javaloveme@gmail.com>
src/pybind/ceph_argparse.py