changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: devproc: move proctab() call after Qnotepg special case in procwrite()

changeset 7391: 6555144c3581
parent 7390: 4ff3104e1836
child 7392: 52b0fd4ff543
author: cinap_lenrek@felloff.net
date: Thu, 19 Sep 2019 02:24:23 +0200
files: sys/src/9/port/devproc.c
description: devproc: move proctab() call after Qnotepg special case in procwrite()
     1.1--- a/sys/src/9/port/devproc.c
     1.2+++ b/sys/src/9/port/devproc.c
     1.3@@ -1158,8 +1158,6 @@ procwrite(Chan *c, void *va, long n, vlo
     1.4 	if(c->qid.type & QTDIR)
     1.5 		error(Eisdir);
     1.6 
     1.7-	p = proctab(SLOT(c->qid));
     1.8-
     1.9 	/* Use the remembered noteid in the channel rather
    1.10 	 * than the process pgrpid
    1.11 	 */
    1.12@@ -1172,6 +1170,8 @@ procwrite(Chan *c, void *va, long n, vlo
    1.13 		return n;
    1.14 	}
    1.15 
    1.16+	p = proctab(SLOT(c->qid));
    1.17+
    1.18 	eqlock(&p->debug);
    1.19 	if(waserror()){
    1.20 		qunlock(&p->debug);