On Wed, Oct 6, 2010 at 10:40 AM, Gustavo Sverzut Barbieri <[email protected]> wrote: >>> + ioctl(fd, LOOP_CLR_FD, 0); >>> + r = errno; >>> + close_nointr(fd); >>> + >>> + if (r == ENXIO) /* not bound, so no error */ >>> + r = 0; >>> + errno = r; >>> + return -errno; >>> +} >> >> Might be good to print an error message here. > > In the ENXIO case? or others? The ENXIO will happen if you do not have > it in use, so in my machine it will always happen 8 times.
just double checked and the real error case is log_debug() later at loopback_points_list_detach(), so it is all right! -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
