loreghei
This commit is contained in:
parent
9da641409d
commit
5ed85491f5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue