An error occurred fetching the project authors.
  1. 15 Feb, 2013 1 commit
    • Russ Cox's avatar
      runtime: fix running under nohup · f3407f44
      Russ Cox authored
      There are two ways nohup(1) might be implemented:
      it might mask away the signal, or it might set the handler
      to SIG_IGN, both of which are inherited across fork+exec.
      So two fixes:
      
      * Make sure to preserve the inherited signal mask at
      minit instead of clearing it.
      
      * If the SIGHUP handler is SIG_IGN, leave it that way.
      
      Fixes #4491.
      
      R=golang-dev, mikioh.mikioh, iant
      CC=golang-dev
      https://golang.org/cl/7308102
      f3407f44
  2. 01 Feb, 2013 1 commit
    • Russ Cox's avatar
      runtime: cgo-related fixes · b0a29f39
      Russ Cox authored
      * Separate internal and external LockOSThread, for cgo safety.
      * Show goroutine that made faulting cgo call.
      * Never start a panic due to a signal caused by a cgo call.
      
      Fixes #3774.
      Fixes #3775.
      Fixes #3797.
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/7228081
      b0a29f39
  3. 16 Apr, 2012 1 commit
  4. 10 Apr, 2012 1 commit
  5. 14 Feb, 2012 1 commit
  6. 13 Feb, 2012 1 commit
    • Russ Cox's avatar
      os/signal: selective signal handling · 35586f71
      Russ Cox authored
      Restore package os/signal, with new API:
      Notify replaces Incoming, allowing clients
      to ask for certain signals only.  Also, signals
      go to everyone who asks, not just one client.
      
      This could plausibly move into package os now
      that there are no magic side effects as a result
      of the import.
      
      Update runtime for new API: move common Unix
      signal handling code into signal_unix.c.
      (It's so easy to do this now that we don't have
      to edit Makefiles!)
      
      Tested on darwin,linux 386,amd64.
      
      Fixes #1266.
      
      R=r, dsymonds, bradfitz, iant, borman
      CC=golang-dev
      https://golang.org/cl/3749041
      35586f71
  7. 16 Dec, 2011 1 commit
    • Russ Cox's avatar
      runtime: make more build-friendly · 851f3013
      Russ Cox authored
      Collapse the arch,os-specific directories into the main directory
      by renaming xxx/foo.c to foo_xxx.c, and so on.
      
      There are no substantial edits here, except to the Makefile.
      The assumption is that the Go tool will #define GOOS_darwin
      and GOARCH_amd64 and will make any file named something
      like signals_darwin.h available as signals_GOOS.h during the
      build.  This replaces what used to be done with -I$(GOOS).
      
      There is still work to be done to make runtime build with
      standard tools, but this is a big step.  After this we will have
      to write a script to generate all the generated files so they
      can be checked in (instead of generated during the build).
      
      R=r, iant, r, lucio.dere
      CC=golang-dev
      https://golang.org/cl/5490053
      851f3013
  8. 12 Dec, 2011 1 commit
  9. 08 Aug, 2011 1 commit
    • Joel Sing's avatar
      runtime: openbsd amd64 runtime support · 21ac258e
      Joel Sing authored
      Add support for the go runtime on openbsd/amd64. This is based on
      the existing freebsd runtime.
      
      Threads are implemented using OpenBSD's rthreads, which are currently
      disabled by default, however can be enabled via the kern.rthreads
      sysctl.
      
      For now, cgo is disabled.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4815067
      21ac258e
  10. 26 Jul, 2011 1 commit
  11. 25 Apr, 2011 1 commit
  12. 24 Mar, 2011 1 commit
  13. 23 Mar, 2011 1 commit
  14. 23 Feb, 2011 2 commits
    • Russ Cox's avatar
      runtime: omit breakpoint during terminal panic · 59ce067d
      Russ Cox authored
      A terminal panic (one that prints a stack trace and exits)
      has been calling runtime.breakpoint before calling exit,
      so that if running under a debugger, the debugger can
      take control.  When not running under a debugger, though,
      this causes an additional SIGTRAP on Unix and pop-up
      dialogs on Windows.
      
      Support for debugging Go programs has gotten good
      enough that we can rely on the debugger to set its own
      breakpoint on runtime.exit if it wants to look around.
      
      R=r, r2
      CC=golang-dev
      https://golang.org/cl/4222043
      59ce067d
    • Russ Cox's avatar
      runtime: pass to signal handler value of g at time of signal · 690291a2
      Russ Cox authored
      The existing code assumed that signals only arrived
      while executing on the goroutine stack (g == m->curg),
      not while executing on the scheduler stack (g == m->g0).
      
      Most of the signal handling trampolines correctly saved
      and restored g already, but the sighandler C code did not
      have access to it.
      
      Some rewriting of assembly to make the various
      implementations as similar as possible.
      
      Will need to change Windows too but I don't
      understand how sigtramp gets called there.
      
      R=r
      CC=golang-dev
      https://golang.org/cl/4203042
      690291a2
  15. 18 Jan, 2011 1 commit
    • Russ Cox's avatar
      runtime: print signal information during panic · 12307008
      Russ Cox authored
      $ 6.out
      panic: runtime error: invalid memory address or nil pointer dereference
      
      [signal 11 code=0x1 addr=0x0 pc=0x1c16]
      
      runtime.panic+0xa7 /Users/rsc/g/go/src/pkg/runtime/proc.c:1089
      	runtime.panic(0xf6c8, 0x25c010)
      runtime.panicstring+0x69 /Users/rsc/g/go/src/pkg/runtime/runtime.c:88
      	runtime.panicstring(0x24814, 0x0)
      runtime.sigpanic+0x144 /Users/rsc/g/go/src/pkg/runtime/darwin/thread.c:465
      	runtime.sigpanic()
      main.f+0x16 /Users/rsc/x.go:5
      	main.f()
      main.main+0x1c /Users/rsc/x.go:9
      	main.main()
      runtime.mainstart+0xf /Users/rsc/g/go/src/pkg/runtime/amd64/asm.s:77
      	runtime.mainstart()
      runtime.goexit /Users/rsc/g/go/src/pkg/runtime/proc.c:149
      	runtime.goexit()
      
      R=r
      CC=golang-dev
      https://golang.org/cl/4036042
      12307008
  16. 04 Nov, 2010 1 commit
    • Russ Cox's avatar
      runtime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almost · 68b4255a
      Russ Cox authored
      Prefix all external symbols in runtime by runtime·,
      to avoid conflicts with possible symbols of the same
      name in linked-in C libraries.  The obvious conflicts
      are printf, malloc, and free, but hide everything to
      avoid future pain.
      
      The symbols left alone are:
      
      	** known to cgo **
      	_cgo_free
      	_cgo_malloc
      	libcgo_thread_start
      	initcgo
      	ncgocall
      
      	** known to linker **
      	_rt0_$GOARCH
      	_rt0_$GOARCH_$GOOS
      	text
      	etext
      	data
      	end
      	pclntab
      	epclntab
      	symtab
      	esymtab
      
      	** known to C compiler **
      	_divv
      	_modv
      	_div64by32
      	etc (arch specific)
      
      Tested on darwin/386, darwin/amd64, linux/386, linux/amd64.
      
      Built (but not tested) for freebsd/386, freebsd/amd64, linux/arm, windows/386.
      
      R=r, PeterGo
      CC=golang-dev
      https://golang.org/cl/2899041
      68b4255a
  17. 11 Sep, 2010 1 commit
  18. 29 Jun, 2010 1 commit
  19. 20 May, 2010 1 commit
  20. 14 Apr, 2010 1 commit
  21. 09 Apr, 2010 2 commits
  22. 05 Apr, 2010 1 commit
  23. 17 Dec, 2009 1 commit
  24. 16 Dec, 2009 1 commit
  25. 09 Dec, 2009 1 commit
  26. 20 Nov, 2009 1 commit
  27. 17 Nov, 2009 1 commit
    • Devon H. O'Dell's avatar
      FreeBSD-specific porting work. · 0489a260
      Devon H. O'Dell authored
      cgo/libmach remain unimplemented. However, compilers, runtime,
      and packages are 100%. I still need to go through and implement
      missing syscalls (at least make sure they're all listed), but
      for all shipped functionality, this is done. Ship! ;)
      
      R=rsc, VenkateshSrinivas
      https://golang.org/cl/152142
      0489a260