inform dsp_empty_socket() *after* we emptied the dsp socket, that it is now empty

This commit is contained in:
Lennart Poettering 2008-10-02 01:02:31 +02:00
parent 9f5d052d93
commit 54afcf2598

View file

@ -498,7 +498,6 @@ static void atfork_prepare(void) {
pthread_mutex_lock(&func_mutex);
debug(DEBUG_LEVEL_NORMAL, __FILE__": atfork_prepare() exit\n");
}
@ -550,12 +549,14 @@ static void atfork_child(void) {
}
if (i->app_fd >= 0) {
close(i->app_fd);
LOAD_CLOSE_FUNC();
_close(i->app_fd);
i->app_fd = -1;
}
if (i->thread_fd >= 0) {
close(i->thread_fd);
LOAD_CLOSE_FUNC();
_close(i->thread_fd);
i->thread_fd = -1;
}
@ -943,6 +944,10 @@ static int fd_info_copy_data(fd_info *i, int force) {
api->io_enable(i->io_event, i->io_flags);
}
/* So, we emptied the socket now, let's tell dsp_empty_socket()
* about this */
pa_threaded_mainloop_signal(i->mainloop, 0);
return 0;
}