diff options
author | Sage Weil <sage@redhat.com> | 2016-11-22 05:37:31 +0100 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2016-11-22 05:37:31 +0100 |
commit | 61fca96c29104683da74c913cfbf4005ba95cf77 (patch) | |
tree | fb949e5731066442cc63071afba371dcf7e2c86e /src/common/SubProcess.h | |
parent | Merge pull request #11993 from ceph/wip-17809 (diff) | |
download | ceph-61fca96c29104683da74c913cfbf4005ba95cf77.tar.xz ceph-61fca96c29104683da74c913cfbf4005ba95cf77.zip |
assert(0) -> ceph_abort()
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/common/SubProcess.h')
-rw-r--r-- | src/common/SubProcess.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/SubProcess.h b/src/common/SubProcess.h index 6106f7511e2..0630a468142 100644 --- a/src/common/SubProcess.h +++ b/src/common/SubProcess.h @@ -309,7 +309,7 @@ inline int SubProcess::spawn() { } exec(); - assert(0); // Never reached + ceph_abort(); // Never reached } ret = -errno; @@ -391,7 +391,7 @@ inline void SubProcessTimed::exec() { if (timeout <= 0) { SubProcess::exec(); - assert(0); // Never reached + ceph_abort(); // Never reached } sigset_t mask, oldmask; @@ -440,7 +440,7 @@ inline void SubProcessTimed::exec() { } (void)setpgid(0, 0); // Become process group leader. SubProcess::exec(); - assert(0); // Never reached + ceph_abort(); // Never reached } // Parent |