On 10/29/2015 06:02 PM, Volker Lendecke wrote: > + ret = read_data(fd, child, sizeof(child)); > + if (ret == -1) { Doesn't seem to take EOF into account, but neither does the original code. How come? Uri.