Noted where using blocking I/O
This commit is contained in:
parent
1a7e08ee62
commit
10ebac2c9c
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user