-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted
Milestone
Description
What version of Go are you using (go version)?
go1.13.4
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Linux on amd64
According to http://man7.org/linux/man-pages/man2/prctl.2.html the signature of prctl is
int prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);
unix.Prctl on the other hand is not returning the int. For some options that return value is relevant, for example PR_GET_NO_NEW_PRIVS and others (search for as the function result in the man page).
Could unix.Prctl be changed to return (int, error)?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted