Browse Source

Invalidate pids in shared memory that aren't running.

pull/74/head
Yuri 8 years ago
parent
commit
964dec909d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libjack/shm.c

+ 3
- 0
libjack/shm.c View File

@@ -419,6 +419,9 @@ jack_register_server (const char *server_name, int new_registry)
return EEXIST; /* other server running */
}

/* invalidate the dead pid */
jack_shm_header->server[i].pid = 0;

/* it's gone, reclaim this entry */
memset (&jack_shm_header->server[i], 0,
sizeof(jack_shm_server_t));


Loading…
Cancel
Save