x/sys/unix: Prctl should return (int, error) #35978
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?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
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 foras the function result
in the man page).Could
unix.Prctl
be changed to return(int, error)
?The text was updated successfully, but these errors were encountered: