Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/perfused openlog with LOG_NDELAY so that pzerfused ...



details:   https://anonhg.NetBSD.org/src/rev/abca8cc51296
branches:  trunk
changeset: 770561:abca8cc51296
user:      manu <manu%NetBSD.org@localhost>
date:      Sun Oct 23 05:03:37 2011 +0000

description:
openlog with LOG_NDELAY so that pzerfused does not deadlock later
on vnode recycling because it wants to log a message.

Patch from Manuel Bouyer.

diffstat:

 usr.sbin/perfused/perfused.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b44b62a2e1f8 -r abca8cc51296 usr.sbin/perfused/perfused.c
--- a/usr.sbin/perfused/perfused.c      Sun Oct 23 05:01:00 2011 +0000
+++ b/usr.sbin/perfused/perfused.c      Sun Oct 23 05:03:37 2011 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: perfused.c,v 1.15 2011/09/09 15:45:28 manu Exp $ */
+/*  $NetBSD: perfused.c,v 1.16 2011/10/23 05:03:37 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -381,7 +381,7 @@
        s = parse_options(argc, argv);
 
        if (perfuse_diagflags & PDF_SYSLOG)
-               openlog("perfused", 0, LOG_DAEMON);
+               openlog("perfused", LOG_NDELAY, LOG_DAEMON);
 
        if (!(perfuse_diagflags & PDF_FOREGROUND))
                if (daemon(0, 0) != 0)



Home | Main Index | Thread Index | Old Index