Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for runtime_unignoreHangup (0.32 sec)

  1. src/runtime/net_plan9.go

    import (
    	_ "unsafe"
    )
    
    //go:linkname runtime_ignoreHangup internal/poll.runtime_ignoreHangup
    func runtime_ignoreHangup() {
    	getg().m.ignoreHangup = true
    }
    
    //go:linkname runtime_unignoreHangup internal/poll.runtime_unignoreHangup
    func runtime_unignoreHangup(sig string) {
    	getg().m.ignoreHangup = false
    }
    
    func ignoredNote(note *byte) bool {
    	if note == nil {
    		return false
    	}
    	if gostringnocopy(note) != "hangup" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 18:36:28 UTC 2017
    - 645 bytes
    - Viewed (0)
  2. src/internal/poll/fd_io_plan9.go

    		// Go runtime.
    		runtime.LockOSThread()
    		runtime_ignoreHangup()
    		aio.pid = syscall.Getpid()
    		aio.mu.Unlock()
    
    		n, err := fn(b)
    
    		aio.mu.Lock()
    		aio.pid = -1
    		runtime_unignoreHangup()
    		aio.mu.Unlock()
    
    		aio.res <- result{n, err}
    	}()
    	return aio
    }
    
    // Cancel interrupts the I/O operation, causing
    // the Wait function to return.
    func (aio *asyncIO) Cancel() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top