Commit 5a76d99a authored by Philippe Gerum's avatar Philippe Gerum
Browse files

lib/sem: have evl_open_sem() return -ENXIO when due

-ENXIO is the conventional error code signaling that the caller has
 issued a syscall without being attached to the core. Make sure
 evl_open_sem() detects this and bails out early.
Signed-off-by: default avatarPhilippe Gerum <>
parent 1489e7dd
......@@ -72,6 +72,9 @@ int evl_open_sem(struct evl_sem *sem, const char *fmt, ...)
int ret, efd;
va_list ap;
if (evl_shared_memory == NULL)
return -ENXIO;
va_start(ap, fmt);
efd = open_evl_element_vargs(EVL_MONITOR_DEV, fmt, ap);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment