Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Sigisblocked (0.08 sec)

  1. src/runtime/crash_unix_test.go

    import (
    	"bytes"
    	"internal/testenv"
    	"io"
    	"os"
    	"os/exec"
    	"runtime"
    	"runtime/debug"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    func init() {
    	if runtime.Sigisblocked(int(syscall.SIGQUIT)) {
    		// We can't use SIGQUIT to kill subprocesses because
    		// it's blocked. Use SIGKILL instead. See issue
    		// #19196 for an example of when this happens.
    		testenv.Sigquit = syscall.SIGKILL
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. src/runtime/export_unix_test.go

    var NonblockingPipe = nonblockingPipe
    var Fcntl = fcntl
    var Closeonexec = closeonexec
    
    func sigismember(mask *sigset, i int) bool {
    	clear := *mask
    	sigdelset(&clear, i)
    	return clear != *mask
    }
    
    func Sigisblocked(i int) bool {
    	var sigmask sigset
    	sigprocmask(_SIG_SETMASK, nil, &sigmask)
    	return sigismember(&sigmask, i)
    }
    
    type M = m
    
    var waitForSigusr1 struct {
    	rdpipe int32
    	wrpipe int32
    	mID    int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 21:27:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top