Author: pjd
Date: Sun Feb  6 14:07:58 2011
New Revision: 218374
URL: http://svn.freebsd.org/changeset/base/218374

Log:
  Treat fstat(2) failure (different than EBADF) as fatal error.
  
  Reported by:  Mikolaj Golub <[email protected]>
  MFC after:    1 week

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c     Sun Feb  6 14:06:37 2011        (r218373)
+++ head/sbin/hastd/hastd.c     Sun Feb  6 14:07:58 2011        (r218374)
@@ -188,6 +188,7 @@ descriptors_assert(const struct hast_res
                        snprintf(msg, sizeof(msg),
                            "Unable to fstat descriptor %d: %s", fd,
                            strerror(errno));
+                       break;
                }
                if (fd == STDIN_FILENO || fd == STDOUT_FILENO ||
                    fd == STDERR_FILENO) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to