[go-nuts] Need DontCloseOnExec, or Fcntl, or both

2018-04-01 Thread phil
Howdy, Im involved in some crossplatform work, and ran into the following pair of issues. 1. Apparently, default behavour in Go, is to set F_CLOEXEC, aka "Close on Exec", on file descriptors. And there is a public syscall, in the exec_unix.go source, func CloseOnExec(fd int) { fcntl(fd, F_SETF

Re: [go-nuts] Re: asn1: tags don't match

2018-04-01 Thread andrey mirtchovski
Thanks for your help. I think I understood the problem I was having. In the original code (not the example in this email) things that would normally go to a CHOICE field were marshalled into a RawValue, which then got switched on RawValue.Tag to decide where to go (it's part of the protocol, unrela

[go-nuts] call for proposals for Goruco 2018

2018-04-01 Thread dmitri . nesterenko
GORUCO 2018 is now accepting talk proposals! On Saturday, June 16th, GORUCO is celebrating its 12th convocation as NYC's premier regional software conference. It's a one-day, single-track event geared toward highly motivated and experienced developers that's been celebrated

[go-nuts] Re: asn1: tags don't match

2018-04-01 Thread Maciej GaƂkowski
Hi, For once, your definition of type Outer1 struct { One Inner `asn1:"tag:0"` Two Inner `asn1:"tag:1"` } is bad. It should be Outer1 struct { One Inner `asn1:"tag:1"` Two Inner `asn1:"tag:2"` } as it is in the asn1 bytes. After the fix, you would get: main.Outer1{One:main.Inner{First:1, Se