I was getting Bus errors when I was using 9cpu.b with Feedkey. This patch from Noah fixes the problem: --- /appl/cmd/9cpu.b Thu May 21 12:49:29 EDT 2009 +++ 9cpu.b Mon May 25 11:44:05 EDT 2009 @@ -102,6 +102,11 @@ fatal(sys->sprint("unknown authentication method %q", authmethod));
sys->pctl(Sys->FORKNS, nil); + # get an authenticated connection + # run rio if you have a plan 9 window. + # if it's an inferno command. run a shell otherwise mount + # you also want to import that context. + # then what? (dfd, err) := rexcall(system, authmethod, keyspec, ealgs); if(dfd == nil) fatal(err); @@ -144,7 +149,7 @@ if(exdir != "/") fatal("cannot export portion of namespace");
- sys->write(dfd, array[] of {byte 'O', byte 'K'}, 2); + sys->write(dfd, array of byte "OK", 2);
# set up the namespace that we wish to export if(wmexport){
> I was getting Bus errors when I was using 9cpu.b with Feedkey. This > patch from Noah fixes the problem: > --- /appl/cmd/9cpu.b Thu May 21 12:49:29 EDT 2009 > +++ 9cpu.b Mon May 25 11:44:05 EDT 2009 > @@ -102,6 +102,11 @@ > fatal(sys->sprint("unknown authentication method %q", authmethod));
> sys->pctl(Sys->FORKNS, nil); > + # get an authenticated connection > + # run rio if you have a plan 9 window. > + # if it's an inferno command. run a shell otherwise mount > + # you also want to import that context. > + # then what? > (dfd, err) := rexcall(system, authmethod, keyspec, ealgs); > if(dfd == nil) > fatal(err); > @@ -144,7 +149,7 @@ > if(exdir != "/") > fatal("cannot export portion of namespace");
> - sys->write(dfd, array[] of {byte 'O', byte 'K'}, 2); > + sys->write(dfd, array of byte "OK", 2);
> # set up the namespace that we wish to export > if(wmexport){
That is the whole patch. I don't see what the difference is either outside one worked for me and the other didn't (on the mac anyways). I can double check just to make sure tommorow.
Sent from my iPhone
On May 25, 2009, at 6:41 PM, Caerwyn Jones <caerw...@gmail.com> wrote:
> I don't see how this can change anything. These two lines seem to me > the same.
> - sys->write(dfd, array[] of {byte 'O', byte 'K'}, 2); > + sys->write(dfd, array of byte "OK", 2);
> Was that the whole diff?
> On Mon, May 25, 2009 at 12:00 PM, Eric Van Hensbergen <eri...@gmail.com > > wrote:
>> I was getting Bus errors when I was using 9cpu.b with Feedkey. This >> patch from Noah fixes the problem: >> --- /appl/cmd/9cpu.b Thu May 21 12:49:29 EDT 2009 >> +++ 9cpu.b Mon May 25 11:44:05 EDT 2009 >> @@ -102,6 +102,11 @@ >> fatal(sys->sprint("unknown authentication method >> %q", authmethod));
>> sys->pctl(Sys->FORKNS, nil); >> + # get an authenticated connection >> + # run rio if you have a plan 9 window. >> + # if it's an inferno command. run a shell otherwise mount >> + # you also want to import that context. >> + # then what? >> (dfd, err) := rexcall(system, authmethod, keyspec, ealgs); >> if(dfd == nil) >> fatal(err); >> @@ -144,7 +149,7 @@ >> if(exdir != "/") >> fatal("cannot export portion of namespace");
>> - sys->write(dfd, array[] of {byte 'O', byte 'K'}, 2); >> + sys->write(dfd, array of byte "OK", 2);
>> # set up the namespace that we wish to export >> if(wmexport){