增加dlerror()的日志记录

This commit is contained in:
LiYang 2016-10-07 10:38:17 +08:00
parent ce88c9c897
commit 2c03f35b73

View File

@ -137,7 +137,7 @@ int child_process(void *args) {
int (*load_seccomp)(void *, struct config *);
if (!handler) {
LOG_FATAL(log_fp, "seccomp failed");
LOG_FATAL(log_fp, "seccomp failed, %s", dlerror());
CHILD_ERROR_EXIT(LOAD_SECCOMP_FAILED);
}
load_seccomp = dlsym(handler, "load_seccomp");