Skip to content
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

Open
wants to merge 1 commit into
base: nix
Choose a base branch
from

Conversation

paul-lalonde
Copy link

Remove residue of SYSEXECAC incomplete insertion.
Reverse getac error checks so that not-an-ac comes before other complications.

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);
Copy link
Owner

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);
Copy link
Owner

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:
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants