#include <sys/mman.h>
#include <sys/ipc.h>
#include <sys/shm.h>
-#include "list.h"
+//#include "list.h"
#include "relay.h"
#include "channels.h"
-#include "kref.h"
+#include <kcompat/kref.h>
#include "tracer.h"
#include "tracercore.h"
#include "usterr.h"
result = ltt_chan->buf_shmid = shmget(getpid(), size, IPC_CREAT | IPC_EXCL | 0700);
if(ltt_chan->buf_shmid == -1) {
PERROR("shmget");
- return -1;
+ return;
}
ptr = shmat(ltt_chan->buf_shmid, NULL, 0);
result = shmctl(ltt_chan->buf_shmid, IPC_RMID, NULL);
if(result == -1) {
perror("shmctl");
- return -1;
+ return;
}
ltt_chan->buf = ptr;
- return 0;
+ return;
destroy_shmem:
result = shmctl(ltt_chan->buf_shmid, IPC_RMID, NULL);
perror("shmctl");
}
- return -1;
+ return;
}
/*