You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
Problem: the this_process::group() cannot be implemented in a proper way, since I cannot get the handle of the current process group on windows. BUT I can create a group and assign the current process to it, if it does NOT have a group assigned to it. The latter is also a windows constraint.
I.e. done like this:
group g;
auto c = execute("gcc");
g.assign(c);
That throws if this_process is already assigned to a group (windows constraint).
For Posix: this is done indirectly, a group will have a bool which says if it's initialized. If it is not initialized it will be after fork and write the gid into a self-pipe.
The text was updated successfully, but these errors were encountered:
Synopsis:
Putting a process into another group:
Problem: the
this_process::group()
cannot be implemented in a proper way, since I cannot get the handle of the current process group on windows. BUT I can create a group and assign the current process to it, if it does NOT have a group assigned to it. The latter is also a windows constraint.I.e. done like this:
That throws if this_process is already assigned to a group (windows constraint).
For Posix: this is done indirectly, a group will have a bool which says if it's initialized. If it is not initialized it will be after fork and write the gid into a self-pipe.
The text was updated successfully, but these errors were encountered: