There are a few problems with this approach.
* Your main() func runs in a goroutine
* An unknown number of goroutines can be started during the init
phase, including packages you import
* Go has several `system` goroutines that are started before main as well.
On Sat, May 11, 2013 at 4:39 AM, <
ma...@jamiehillman.co.uk> wrote:
> Hi,
>
> Sorry to bump an old thread, but I'm trying to write a program that execs
> tmux - doing something along the lines of tmuxinator (but much simpler).
> I've noticed this OS X limitation that Russ mentions here. Is there any way
> to make exec work - I thought there wouldn't be any threads until I launch a
> goroutine? I could just output my commands from go and eval them in bash
> but I wanted to have a self contained executable and not be tied to a
> particular shell. Any idea how I can get around this?
>
> Thanks,
>
> Jamie
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>