Module Name:    src
Committed By:   manu
Date:           Sun Oct 23 05:03:37 UTC 2011

Modified Files:
        src/usr.sbin/perfused: perfused.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/perfused/perfused.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/perfused/perfused.c
diff -u src/usr.sbin/perfused/perfused.c:1.15 src/usr.sbin/perfused/perfused.c:1.16
--- src/usr.sbin/perfused/perfused.c:1.15	Fri Sep  9 15:45:28 2011
+++ src/usr.sbin/perfused/perfused.c	Sun Oct 23 05:03:37 2011
@@ -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 @@ main(int argc, char **argv)
 	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)

Reply via email to