remove old heload
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
#include "hiisi.h"
|
||||
#include "heload/heload.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <atomic>
|
||||
#include <dlfcn.h>
|
||||
#include <link.h>
|
||||
#include <signal.h>
|
||||
#include <atomic>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
std::atomic<bool> reload_requested(false);
|
||||
|
||||
void reload_signal_handler(int) {
|
||||
reload_requested = true;
|
||||
}
|
||||
void reload_signal_handler(int) { reload_requested = true; }
|
||||
|
||||
Engine load_hiisi() {
|
||||
const char *name = "build/hiisi/libhiisi-engine.so";
|
||||
@@ -47,7 +44,7 @@ Engine load_hiisi() {
|
||||
|
||||
/* Allocate the buffer for use with RTLD_DI_SERINFO. */
|
||||
|
||||
sip = (Dl_serinfo*)malloc(serinfo.dls_size);
|
||||
sip = (Dl_serinfo *)malloc(serinfo.dls_size);
|
||||
if (sip == NULL) {
|
||||
perror("malloc");
|
||||
exit(EXIT_FAILURE);
|
||||
@@ -69,8 +66,8 @@ Engine load_hiisi() {
|
||||
}
|
||||
|
||||
for (size_t j = 0; j < serinfo.dls_cnt; j++)
|
||||
printf("dls_serpath[%zu].dls_name = %s\n",
|
||||
j, sip->dls_serpath[j].dls_name);
|
||||
printf("dls_serpath[%zu].dls_name = %s\n", j,
|
||||
sip->dls_serpath[j].dls_name);
|
||||
|
||||
Engine engine;
|
||||
engine.module = mod;
|
||||
|
||||
Reference in New Issue
Block a user