Date: Sun, 6 Feb 2011 14:07:58 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218374 - head/sbin/hastd Message-ID: <201102061407.p16E7wUu067320@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <to.my.trociny@gmail.com> 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102061407.p16E7wUu067320>