mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
deal properly with signals interrupting us when we wait for data from gconf helper
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1992 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f1be9312cb
commit
2d265a91cc
1 changed files with 4 additions and 2 deletions
|
|
@ -225,8 +225,11 @@ static int handle_event(struct userdata *u) {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if ((opcode = read_byte(u)) < 0)
|
if ((opcode = read_byte(u)) < 0){
|
||||||
|
if (errno == EINTR || errno == EAGAIN)
|
||||||
|
break;
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case '!':
|
case '!':
|
||||||
|
|
@ -509,4 +512,3 @@ void pa__done(pa_module*m) {
|
||||||
|
|
||||||
pa_xfree(u);
|
pa_xfree(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue