Noted where using blocking I/O

This commit is contained in:
Pierre Pronchery 2012-04-19 13:33:34 +00:00
parent 1a7e08ee62
commit 10ebac2c9c
2 changed files with 2 additions and 0 deletions

View File

@ -368,6 +368,7 @@ static int _keyboard_spawn(Keyboard * keyboard, unsigned long * xid)
return -1;
}
g_child_watch_add(keyboard->pid, _keyboard_on_child, keyboard);
/* FIXME no longer use blocking I/O */
if((size = read(out, buf, sizeof(buf) - 1)) <= 0) /* XXX may block */
/* XXX not very explicit... */
return -helper->error(helper->panel, "read", 1);

View File

@ -369,6 +369,7 @@ static int _mixer_spawn(Mixer * mixer, unsigned long * xid)
return -1;
}
g_child_watch_add(mixer->pid, _mixer_on_child, mixer);
/* FIXME no longer use blocking I/O */
if((size = read(out, buf, sizeof(buf) - 1)) <= 0) /* XXX may block */
/* XXX not very explicit... */
return -helper->error(helper->panel, "read", 1);