Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser unsnafu previous
details: https://anonhg.NetBSD.org/src/rev/0e63ec993ac3
branches: trunk
changeset: 759018:0e63ec993ac3
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Nov 24 17:20:24 2010 +0000
description:
unsnafu previous
diffstat:
lib/librumpuser/sp_common.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 720890c15c06 -r 0e63ec993ac3 lib/librumpuser/sp_common.c
--- a/lib/librumpuser/sp_common.c Wed Nov 24 17:03:39 2010 +0000
+++ b/lib/librumpuser/sp_common.c Wed Nov 24 17:20:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sp_common.c,v 1.8 2010/11/24 17:00:10 pooka Exp $ */
+/* $NetBSD: sp_common.c,v 1.9 2010/11/24 17:20:24 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -278,12 +278,12 @@
pfd.events = POLLIN;
for (gotresp = 0; !gotresp; ) {
- rv = readframe(spc);
- switch (rv) {
+ switch (readframe(spc)) {
case 0:
poll(&pfd, 1, INFTIM);
continue;
case -1:
+ rv = errno;
spc->spc_dying = 1;
break;
default:
@@ -318,6 +318,7 @@
pthread_mutex_unlock(&spc->spc_mtx);
pthread_cond_destroy(&rw->rw_cv);
+
return rv;
}
Home |
Main Index |
Thread Index |
Old Index