]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: use correct type for TIOCSPGRP/TIOCGPGRP
authorJoel Sing <joel@sing.id.au>
Sat, 29 May 2021 15:46:19 +0000 (01:46 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 16 Aug 2021 10:46:11 +0000 (10:46 +0000)
commit3d679c6554d5b282154caa717567ad8353a8bc71
treeadf3004755fd51d9fa6052fc97661003c1e1464c
parentfcdc3c098cd016af9ba5e626bd4525575bb984f2
syscall: use correct type for TIOCSPGRP/TIOCGPGRP

These ioctls take a pid_t (generally a C integer aka int32) and not an int64 - we
currently get away with this on little endian 64 bit platforms, since the bytes
fall into the correct place, however this breaks on big endian 64 bit platforms
(like openbsd/mips64).

This is the same fix as CL 267605, however for libc based exec.

Updates #36435

Change-Id: I01ae4905cba5e1f8725fa6cb8c35403c511534b2
Reviewed-on: https://go-review.googlesource.com/c/go/+/334881
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/syscall/exec_libc2.go