mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
Added unlink of the communication socket name.
Added retry when the semaphore is lost (server is going down and removes the global semaphore). Now the application creates a new direct server automagically rather than the error return.
This commit is contained in:
parent
0811da2a15
commit
e03aaa1888
4 changed files with 46 additions and 28 deletions
|
|
@ -280,6 +280,7 @@ static void server_job(snd_pcm_direct_t *dmix)
|
|||
close(dmix->hw_fd);
|
||||
if (dmix->server_free)
|
||||
dmix->server_free(dmix);
|
||||
unlink(dmix->shmptr->socket_name);
|
||||
snd_pcm_direct_shm_discard(dmix);
|
||||
snd_pcm_direct_semaphore_discard(dmix);
|
||||
server_printf("DIRECT SERVER EXIT\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue