]> Cypherpunks repositories - gostls13.git/commit
syscall: use correct type for TIOCSPGRP/TIOCGPGRP
authorJoel Sing <joel@sing.id.au>
Mon, 2 Nov 2020 15:11:51 +0000 (02:11 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 13 Nov 2020 13:56:34 +0000 (13:56 +0000)
commit31f71506d7026595be76713af25197a8c0022ac8
treefda9d6175e2f2fa14d3596771a156ddd54c0ea31
parent30ba7980932dfb7ec6660ee929b4e1982256285f
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).

Update #40995

Change-Id: I622a0543fd562d97f76a7376a84fd2641e6d6a24
Reviewed-on: https://go-review.googlesource.com/c/go/+/267605
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/exec_bsd.go
src/syscall/exec_unix_test.go