containers / libkrun

A dynamic library providing Virtualization-based process isolation capabilities
Apache License 2.0
901 stars 74 forks source link

examples: Fix error handling of krun_create_ctx #118

Closed rwmjones closed 1 year ago

rwmjones commented 1 year ago

Looking at the source of this function, it appears to return a negative errno on error, or a >= index into a map for success. Fix the calling code to set errno correctly.