From 52123d52726c193dbe67c32b4a0b4f857c2326bb Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 7 Oct 2010 18:16:22 +0000 Subject: Don't close local component on exit as we can hang waiting on g_waitidle. I'm unable to reproduce the race described in comment anymore and also the comment is incorrect - localfd represents local component from configuration file, eg. /dev/da0 and not HAST provider. Reported by: Mikolaj Golub MFC after: 1 week --- sbin/hastd/primary.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sbin') diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index d99bfd7..091c236 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -234,12 +234,6 @@ cleanup(struct hast_resource *res) /* Remember errno. */ rerrno = errno; - /* - * Close descriptor to /dev/hast/ - * to work-around race in the kernel. - */ - close(res->hr_localfd); - /* Destroy ggate provider if we created one. */ if (res->hr_ggateunit >= 0) { struct g_gate_ctl_destroy ggiod; -- cgit v1.1