mirror of
https://github.com/golang/go
synced 2024-11-12 04:50:21 -07:00
misc/cgo/testcshared: use fd 100 instead of fd 10 for back-channel communication
There is a report that fd 10 is already in use when run on some OS X machines. I don't see how, and I can't reproduce the problem on my own OS X machine, but it's easy enough to fix. Fixes #12161. Change-Id: I73511bdd91258ecda181d60d2829add746d1198b Reviewed-on: https://go-review.googlesource.com/17451 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
cd58f44b20
commit
b5e2ec8bbe
@ -9,7 +9,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define fd (10)
|
#define fd (100)
|
||||||
|
|
||||||
// Tests libgo2.so, which does not export any functions.
|
// Tests libgo2.so, which does not export any functions.
|
||||||
// Read a string from the file descriptor and print it.
|
// Read a string from the file descriptor and print it.
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
// that the C code can also use.
|
// that the C code can also use.
|
||||||
|
|
||||||
const (
|
const (
|
||||||
fd = 10
|
fd = 100
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user