Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sdpd move debug output before the loop, which possi...
details: https://anonhg.NetBSD.org/src/rev/138394a60b53
branches: trunk
changeset: 758100:138394a60b53
user: plunky <plunky%NetBSD.org@localhost>
date: Mon Oct 18 20:43:23 2010 +0000
description:
move debug output before the loop, which possibly changes the value of fd
diffstat:
usr.sbin/sdpd/server.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 5c61e2056649 -r 138394a60b53 usr.sbin/sdpd/server.c
--- a/usr.sbin/sdpd/server.c Mon Oct 18 19:39:32 2010 +0000
+++ b/usr.sbin/sdpd/server.c Mon Oct 18 20:43:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: server.c,v 1.8 2010/03/07 10:58:40 plunky Exp $ */
+/* $NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: server.c,v 1.8 2010/03/07 10:58:40 plunky Exp $");
+__RCSID("$NetBSD: server.c,v 1.9 2010/10/18 20:43:23 plunky Exp $");
#include <sys/select.h>
#include <sys/stat.h>
@@ -564,14 +564,14 @@
FD_CLR(fd, &srv->fdset);
srv->fdidx[fd].valid = false;
+ log_debug("client on fd#%d closed", fd);
+
if (fd == srv->fdmax) {
while (fd > 0 && !srv->fdidx[fd].valid)
fd--;
srv->fdmax = fd;
}
-
- log_debug("client on fd#%d closed", fd);
}
/*
Home |
Main Index |
Thread Index |
Old Index