Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 388 for signalM (0.38 sec)

  1. src/runtime/export_unix_test.go

    	ready(mp)
    
    	// Wait for the signal. We use a pipe rather than a note
    	// because write is always async-signal-safe.
    	entersyscallblock()
    	var b byte
    	read(waitForSigusr1.rdpipe, noescape(unsafe.Pointer(&b)), 1)
    	exitsyscall()
    
    	gotM := waitForSigusr1.mID
    	testSigusr1 = nil
    
    	unlockOSThread()
    
    	if b != 0 {
    		// timeout signal from caller
    		return -1, -1
    	}
    	return mp.id, gotM
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 21:27:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/runtime/os_dragonfly.go

    			physPageSize = val
    		}
    	}
    	return i / 2
    }
    
    // raise sends a signal to the calling thread.
    //
    // It must be nosplit because it is used by the signal handler before
    // it definitely has a Go stack.
    //
    //go:nosplit
    func raise(sig uint32) {
    	lwp_kill(-1, lwp_gettid(), int(sig))
    }
    
    func signalM(mp *m, sig int) {
    	lwp_kill(-1, int32(mp.procid), sig)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd.go

    		throw("remapping stack memory failed")
    	}
    }
    
    //go:nosplit
    func raise(sig uint32) {
    	thrkill(getthrid(), int(sig))
    }
    
    func signalM(mp *m, sig int) {
    	thrkill(int32(mp.procid), sig)
    }
    
    // sigPerThreadSyscall is only used on linux, so we assign a bogus signal
    // number.
    const sigPerThreadSyscall = 1 << 31
    
    //go:nosplit
    func runPerThreadSyscall() {
    	throw("runPerThreadSyscall only valid on linux")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/runtime/crash_unix_test.go

    			t.Errorf("pipe write failed: %d", n)
    		}
    	})
    	defer timer.Stop()
    
    	wg.Wait()
    	if got == -1 {
    		t.Fatal("signalM signal not received")
    	} else if want != got {
    		t.Fatalf("signal sent to M %d, but received on M %d", want, got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  5. src/os/signal/signal.go

    // signals no longer need to be diverted to the context.
    func NotifyContext(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc) {
    	ctx, cancel := context.WithCancel(parent)
    	c := &signalCtx{
    		Context: ctx,
    		cancel:  cancel,
    		signals: signals,
    	}
    	c.ch = make(chan os.Signal, 1)
    	Notify(c.ch, c.signals...)
    	if ctx.Err() == nil {
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. pkg/ctrlz/topics/signals.go

    // SignalsTopic returns a ControlZ topic that sends command signals to the process
    func SignalsTopic() fw.Topic {
    	return signalsTopic{}
    }
    
    func (signalsTopic) Title() string {
    	return "Signals"
    }
    
    func (signalsTopic) Prefix() string {
    	return "signal"
    }
    
    func (signalsTopic) Activate(context fw.TopicContext) {
    	tmpl := assets.ParseTemplate(context.Layout(), "templates/signals.html")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:12:24 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. pkg/ctrlz/topics/assets/templates/signals.html

    {{ define "content" }}
    
    <p>
        Send signals to the running process.
    </p>
    
    <br>
    <button class="btn btn-istio" onclick="sendSIGUSR1()">SIGUSR1</button>
    
    {{ template "last-refresh" .}}
    
    <script>
        "use strict";
    
        function sendSIGUSR1() {
            let url = window.location.protocol + "//" + window.location.host + "/signalj/SIGUSR1";
    
            let ajax = new XMLHttpRequest();
            ajax.onload = onload;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 687 bytes
    - Viewed (0)
  8. cmd/signals.go

    			exit(stopProcess())
    		case osSignal := <-globalOSSignalCh:
    			logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String()))
    			daemon.SdNotify(false, daemon.SdNotifyStopping)
    			exit(stopProcess())
    		case signal := <-globalServiceSignalCh:
    			switch signal {
    			case serviceRestart:
    				logger.Info("Restarting on service signal")
    				daemon.SdNotify(false, daemon.SdNotifyReloading)
    				stop := stopProcess()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/plan9/mkerrors.sh

    			buf[0] += a - A;
    		printf("\t%d: \"%s\",\n", e, buf);
    	}
    	printf("}\n\n");
    	
    	printf("\n\n// Signal table\n");
    	printf("var signals = [...]string {\n");
    	qsort(signals, nelem(signals), sizeof signals[0], intcmp);
    	for(i=0; i<nelem(signals); i++) {
    		e = signals[i];
    		if(i > 0 && signals[i-1] == e)
    			continue;
    		strcpy(buf, strsignal(e));
    		// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 5.9K bytes
    - Viewed (1)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go

    */
    import "C"
    
    func main() {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGUSR1)
    	defer signal.Stop(c)
    	syscall.Kill(syscall.Getpid(), syscall.SIGUSR1)
    	<-c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 798 bytes
    - Viewed (0)
Back to top