]> git.ipfire.org Git - thirdparty/tor.git/commit
Add new tor_assert_nonfatal*() macros.
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Apr 2016 13:40:51 +0000 (09:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 Apr 2016 20:24:28 +0000 (16:24 -0400)
commita885271c08d2337b35c203c0b27509d0aa32dbf6
tree0cb88f3d43fcc7a90be972d958d3146c1294c06b
parent7865402106e9af273b9c887484b8371a899683ad
Add new tor_assert_nonfatal*() macros.

Unlike tor_assert(), these macros don't abort the process.  They're
good for checking conditions we want to warn about, but which don't
warrant a full crash.

This commit also changes the default implementation for
tor_fragile_assert() to tor_assert_nonfatal_unreached_once().

Closes ticket 18613.
changes/assert_nonfatal [new file with mode: 0644]
src/common/util_bug.c
src/common/util_bug.h
src/or/main.c
src/or/policies.c
src/or/rephist.c