Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/perfused Remove a warning that happens when the fil...



details:   https://anonhg.NetBSD.org/src/rev/1b8f71ee3771
branches:  trunk
changeset: 331617:1b8f71ee3771
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Aug 16 16:32:04 2014 +0000

description:
Remove a warning that happens when the filesystem cleanly exits. Just
display a message when running in debug mode.

diffstat:

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

diffs (21 lines):

diff -r b118d4419d40 -r 1b8f71ee3771 usr.sbin/perfused/msg.c
--- a/usr.sbin/perfused/msg.c   Sat Aug 16 16:31:15 2014 +0000
+++ b/usr.sbin/perfused/msg.c   Sat Aug 16 16:32:04 2014 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: msg.c,v 1.21 2012/07/21 05:49:42 manu Exp $ */
+/*  $NetBSD: msg.c,v 1.22 2014/08/16 16:32:04 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved.
@@ -493,7 +493,10 @@
 
        switch (readen = recv(fd, data, len, MSG_NOSIGNAL|MSG_PEEK)) {
        case 0:
-               perfused_panic();
+               DPRINTF("Filesystem exit\n");
+               /* NOTREACHED */
+               exit(0);
+               break;
        case -1:
                if (errno == EAGAIN)
                        return 0;



Home | Main Index | Thread Index | Old Index