9fans archive / 2001 / 05 / 443 /    prev next

From: "rob pike" <rob@pla...>
Subject: Re: [9fans] Arg fix
Date: Mon, 28 May 2001 13:11:14 -0400

I have now installed a correct wrap file.

-rob

===

Due to an editing mistake - mine - I omitted some cleanup code for the
newest wrap.  It was in the original code, I just dropped it from the wrap.
How embarrassing.

Add the following to newproc(), creating /sys/src/9/port/proc.c:347,349

	free(p->args);
	p->args = nil;
	p->nargs = 0;

It's not a huge problem, because sysexec frees the old args. The effect
of this mistake is to cause a process that forks without exec'ing to pick
up some stale, irrelevant arguments.

I'll update the files on the web later today.

-rob