don't special case EBUSY when configging; if you try to do it 2x, second is err

This commit is contained in:
cgd 1994-04-18 09:12:08 +00:00
parent 536b9f6e5c
commit 5ea3f7846b
1 changed files with 2 additions and 8 deletions

View File

@ -216,14 +216,8 @@ config(vnp)
if (flags & VN_CONFIG) {
rv = ioctl(fileno(f), VNIOCSET, &vnio);
if (rv) {
if (errno == EBUSY) {
if ((flags & VN_ENABLE) == 0 && verbose)
printf("%s: already configured\n",dev);
rv = 0;
} else {
perror("VNIOCSET");
flags &= ~VN_ENABLE;
}
} else if (verbose)
printf("%s: %d bytes on %s\n",
dev, vnio.vn_size, file);