mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: fix little-endian assumptions
Change-Id: Ia38256998e544d620a342dabedd9289d61fb0551 Reviewed-on: https://go-review.googlesource.com/9672 Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
c573a9cb47
commit
62bc2e4c2d
1 changed files with 2 additions and 2 deletions
|
|
@ -178,14 +178,14 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
|
|||
}
|
||||
|
||||
if sys.Foreground {
|
||||
pgrp := sys.Pgid
|
||||
pgrp := int32(sys.Pgid)
|
||||
if pgrp == 0 {
|
||||
r1, _, err1 = RawSyscall(SYS_GETPID, 0, 0, 0)
|
||||
if err1 != 0 {
|
||||
goto childerror
|
||||
}
|
||||
|
||||
pgrp = int(r1)
|
||||
pgrp = int32(r1)
|
||||
}
|
||||
|
||||
// Place process group in foreground.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue