[PATCH] fix 9cpu.b

17 views
Skip to first unread message

Eric Van Hensbergen

unread,
May 25, 2009, 12:00:59 PM5/25/09
to acme...@googlegroups.com
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){

-eric

Caerwyn Jones

unread,
May 25, 2009, 7:41:38 PM5/25/09
to acme...@googlegroups.com
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?

Eric Van Hensbergen

unread,
May 25, 2009, 8:13:58 PM5/25/09
to acme...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages