]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/common: explicitly reraise handled signal in FatalSignal. 43066/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 6 Sep 2021 14:39:19 +0000 (14:39 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 6 Sep 2021 14:46:52 +0000 (14:46 +0000)
commitb018f86cd83604cdf23fe0c3b723d0f985e63985
tree579e9e8771301b35830e5305b2f407aa0ca2dcc3
parent15c1d6a20ab681c1a5878fd6f148160edcc326ad
crimson/common: explicitly reraise handled signal in FatalSignal.

Over the current approach where we just reset the handler to
default and allow CPU to re-execute the segfaulting instruction,
the explicit `::reraise()` is:
1. immune to a race condition if muliple threads run into
   troubles the same time;
2. easier to understand and similar to the classic OSD.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/common/fatal_signal.cc