SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

library code should never exit() or assert() #48

Closed susematz closed 2 years ago

susematz commented 3 years ago

There's some code in libpulp that asserts certain things or calls errx and friends. Library code should generally never do that. Instead of exiting the process due to error conditions the functionality should simply be disabled appropriately. E.g. if the ctors of libpulp can't run (e.g. not finding dlsym), then the whole process should simply be made non-patchable.