Test CI
This commit is contained in:
parent
4d116a2ba9
commit
2b1026f0dc
|
|
@ -5,6 +5,10 @@
|
||||||
#include <itss-management/ManagementRequest.h>
|
#include <itss-management/ManagementRequest.h>
|
||||||
#include <itss-management/ManagementReply.h>
|
#include <itss-management/ManagementReply.h>
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <dirent.h>
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <zmq.h>
|
#include <zmq.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
@ -25,6 +29,11 @@ int init(void* ctx) {
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
void* management_socket = zmq_socket(ctx, ZMQ_REP);
|
void* management_socket = zmq_socket(ctx, ZMQ_REP);
|
||||||
|
struct stat st = {0};
|
||||||
|
if (stat("/tmp/itss/", &st) == -1) {
|
||||||
|
mkdir("/tmp/itss", 0777);
|
||||||
|
}
|
||||||
|
|
||||||
int ra = zmq_bind(management_socket, "ipc:///tmp/itss/management");
|
int ra = zmq_bind(management_socket, "ipc:///tmp/itss/management");
|
||||||
printf("ra %d", ra);
|
printf("ra %d", ra);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue