-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix execac tool core encoding #5
base: nix
Are you sure you want to change the base?
Conversation
Remove residue of SYSEXECAC incomplete insertion. Reverse getac error checks so that not-an-ac comes before other complications.
exec(core, (char **)eargs); | ||
print("Returned? %r\n"); | ||
} | ||
print("Requsting core %lld\n", core); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting
print("Returned? %r\n"); | ||
} | ||
print("Requsting core %lld\n", core); | ||
core = 0xecac | (core << 16); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you just love my cute constant that almost spells execac?
fmtuserstring(&fmt, a, ""); | ||
argv++; | ||
} | ||
break; | ||
case EXEC: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note the problem here: the signature for will be either a va_list containing
(uintptr, char *, va_list)
or a va_list containing (exec classic)
(char *, va_list)
so you'll need to rewrite the EXEC case in places that are intrusive (syscallfmt).
This is my concern about continuing to use exec at all.
I think you had proposed:
to get to an AC, use rfork(RFAC) or rfork(RFPROC|RFAC) and then just exec.
That may still be a better approach. This execac hackery I came up with starts to feel icky.
Remove residue of SYSEXECAC incomplete insertion.
Reverse getac error checks so that not-an-ac comes before other complications.