From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2e38dc2dba2dfd0b245acbd7b22f7581@orthanc.cc.titech.ac.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] xcpu fix for Plan9.c From: YAMANASHI Takeshi <9.nashi@gmail.com> Date: Thu, 20 Oct 2005 11:58:28 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 9d7e7180-ead0-11e9-9d60-3106f5b1d025 > sorry about the error, I have put a fix (untested, no time this morning) > on /n/sources/9grid/Plan9.c Thanks, but you forgot to put "int kidfds[3]" in, it seems. === void runit(void *ac) { Client *c = ac; : int kidfds[3]; === With this addition in Plan9.c, I was able to run xcpusrv on Plan 9 while /n/xcpu/0/arch always returns "linux". :) By the way, tokenize() in runit() will abort if c->argv is nil. You can do this by issuing "echo exec > ctl" without "echo something > argv" done beforehand. Oh, one more thing in xcpu.pdf. There seems to be a typo in the example for setting up argv on p.12. Next, argv: for i in $NODES do echo date > /mnt/xcpu/0/xcpu/$i/exec& done wait The file date is echoed should be argv, not exec. -- "on travel, off the network ... and a fossil in my pocket"