1
0
mirror of https://github.com/golang/go synced 2024-09-24 19:30:12 -06: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:
Russ Cox 2015-12-04 15:46:22 -05:00
parent cd58f44b20
commit b5e2ec8bbe
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include <time.h>
#include <unistd.h>
#define fd (10)
#define fd (100)
// Tests libgo2.so, which does not export any functions.
// Read a string from the file descriptor and print it.

View File

@ -21,7 +21,7 @@ import (
// that the C code can also use.
const (
fd = 10
fd = 100
)
func init() {