This commit is contained in:
Edi De Candido 2023-06-18 16:01:17 +02:00
parent 9da641409d
commit 5ed85491f5
1 changed files with 1 additions and 2 deletions

View File

@ -41,14 +41,13 @@ int getShmidServer() {
// the server fork and the child remove the memory
if (errno == EEXIST) {
char buf[100];
sprintf(buf, "the board alredy exit, I'll remove it now\n");
sprintf(buf, "The board alredy exit, I'll remove it now\n");
warningMsg(buf);
pid_t pid = fork();
if (pid == 0) {
char str_key[16];
sprintf(str_key, "0x%08x", key);
printf("%s\n", str_key);
char *vec[] = {"/bin/ipcrm", "-M", str_key, NULL};
if ((execv("/bin/ipcrm", vec)) == -1) {