Module Name: src Committed By: pooka Date: Wed Nov 24 17:20:24 UTC 2010
Modified Files: src/lib/librumpuser: sp_common.c Log Message: unsnafu previous To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/librumpuser/sp_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/sp_common.c diff -u src/lib/librumpuser/sp_common.c:1.8 src/lib/librumpuser/sp_common.c:1.9 --- src/lib/librumpuser/sp_common.c:1.8 Wed Nov 24 17:00:10 2010 +++ src/lib/librumpuser/sp_common.c Wed Nov 24 17:20:24 2010 @@ -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; }