Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd remove dup O_NDELAY.
details: https://anonhg.NetBSD.org/src/rev/b239d210b9e5
branches: trunk
changeset: 779805:b239d210b9e5
user: christos <christos%NetBSD.org@localhost>
date: Wed Jun 20 01:39:34 2012 +0000
description:
remove dup O_NDELAY.
diffstat:
usr.sbin/syslogd/syslogd.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 19805d2bedf7 -r b239d210b9e5 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Tue Jun 19 23:25:53 2012 +0000
+++ b/usr.sbin/syslogd/syslogd.c Wed Jun 20 01:39:34 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.111 2012/06/19 13:44:35 christos Exp $ */
+/* $NetBSD: syslogd.c,v 1.112 2012/06/20 01:39:34 christos Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.111 2012/06/19 13:44:35 christos Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.112 2012/06/20 01:39:34 christos Exp $");
#endif
#endif /* not lint */
@@ -2422,7 +2422,7 @@
*/
if ((e == EIO || e == EBADF) && f->f_type != F_FILE) {
f->f_file = open(f->f_un.f_fname,
- O_WRONLY|O_APPEND|O_NDELAY|O_NONBLOCK, 0);
+ O_WRONLY|O_APPEND|O_NONBLOCK, 0);
if (f->f_file < 0) {
f->f_type = F_UNUSED;
logerror("%s", f->f_un.f_fname);
@@ -3822,7 +3822,7 @@
f->f_flags |= FFLAG_SIGN;
#endif /* !DISABLE_SIGN */
(void)strlcpy(f->f_un.f_fname, p, sizeof(f->f_un.f_fname));
- if ((f->f_file = open(p, O_WRONLY|O_APPEND|O_NDELAY, 0)) < 0) {
+ if ((f->f_file = open(p, O_WRONLY|O_APPEND, 0)) < 0) {
f->f_type = F_UNUSED;
logerror("%s", p);
break;
Home |
Main Index |
Thread Index |
Old Index