OK I see what you mean. I've now pulled the latest uwsgi from Github
(d6eecd1) and that seems to fixed the issue with the reload :-)

So now that the reload is working for changes to the underlying source
file, what would be better is for the reload to get triggered by changes to
the newly compiled file - is this a case of pointing the --touch-reload at
the resulting binary?

Also, I imagine there isn't any magic to have the whole re-compile and
reload procedure get kicked off when the source file is saved in an editor?


On Tue, May 7, 2013 at 1:17 PM, Roberto De Ioris <[email protected]> wrote:

>
> > Are you referring to a specific branch or commit in the upstream hg?
> >
> > I'm looking at 35da6063e57f (release-branch.go1.1) go1.1rc2, which
> appears
> > to have been committed about 11 hours ago.
> >
>
>
> Sorry i mean latest uwsgi code:
>
> https://github.com/unbit/uwsgi
>
> >
> > On Tue, May 7, 2013 at 12:43 PM, Roberto De Ioris <[email protected]>
> > wrote:
> >
> >>
> >> > Is this potentially one of the things that doesn't work too well on
> >> OSX?
> >> >
> >> > Running the following with go1.1rc2 darwin/amd64:
> >> >
> >> > $ ./main --http :18081 --http-modifier1 11 --touch-reload main.go
> >> >
> >> > results in the following error:
> >> >
> >> > mach error semaphore_signal: 15
> >> > fatal error: mach error
> >> >
> >> > goroutine 1 [syscall]:
> >> > [fp=0x5cde90] runtime.cgocallbackg(0x7fff5fbfe7a0, 0x7fff5fbfe828,
> >> 0x0)
> >> > /usr/local/go/src/pkg/runtime/cgocall.c:272 +0x153
> >> > [fp=0x5cdeb0] runtime.cgocallback_gofunc()
> >> > /usr/local/go/src/pkg/runtime/asm_amd64.s:635 +0x71
> >> > [fp=0x5cdeb8] return()
> >> > /usr/local/go/src/pkg/runtime/asm_amd64.s:508
> >> > [fp=0x5cdf00] runtime.cgocall(0x16980a, 0x5cdf18)
> >> > /usr/local/go/src/pkg/runtime/cgocall.c:162 +0x128
> >> > [fp=0x5cdf18] uwsgi._Cfunc_uwsgi_init(0x7, 0x11100000, 0x0,
> >> 0xc2000a4960)
> >> > uwsgi/_obj/_cgo_defun.c:149 +0x2f
> >> > [fp=0x5cdf70] uwsgi.Run()
> >> > uwsgi/_obj/_cgo_gotypes.go:4209 +0xe9
> >> > [fp=0x5cdf90] main.main()
> >> > /Users/0x6e6562/Workspace/project/src/main.go:21 +0x66
> >> > [fp=0x5cdfb8] runtime.main()
> >> > /usr/local/go/src/pkg/runtime/proc.c:182 +0x92
> >> > [fp=0x5cdfc0] runtime.goexit()
> >> > /usr/local/go/src/pkg/runtime/proc.c:1223
> >> >
> >>
> >>
> >> You should try with latest code (committed about an hour ago).
> >>
> >> I was sure rc2 was not too much different from rc1 :)
> >>
> >>
> >>
> >> --
> >> Roberto De Ioris
> >> http://unbit.it
> >> _______________________________________________
> >> uWSGI mailing list
> >> [email protected]
> >> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> >>
> > _______________________________________________
> > uWSGI mailing list
> > [email protected]
> > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
> >
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to