Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for Signal (0.24 sec)

  1. src/cmd/cgo/internal/test/setgid_linux.go

    		return false
    	}
    
    }
    
    func testSetgid(t *testing.T) {
    	if !runTestSetgid() {
    		t.Error("setgid hung")
    	}
    
    	// Now try it again after using signal.Notify.
    	signal.Notify(make(chan os.Signal, 1), syscall.SIGINT)
    	if !runTestSetgid() {
    		t.Error("setgid hung after signal.Notify")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 843 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/sigprocmask.go

    extern int RunSigThread();
    extern int CheckBlocked();
    */
    import "C"
    import (
    	"os"
    	"os/signal"
    	"syscall"
    	"testing"
    )
    
    var blocked bool
    
    //export IntoGoAndBack
    func IntoGoAndBack() {
    	// Verify that SIGIO stays blocked on the C thread
    	// even when unblocked for signal.Notify().
    	signal.Notify(make(chan os.Signal), syscall.SIGIO)
    	blocked = C.CheckBlocked() != 0
    }
    
    func testSigprocmask(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 808 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main5.c

    			if (verbose) {
    				printf("attempting external signal test\n");
    			}
    
    			fprintf(stderr, "OK\n");
    			fflush(stderr);
    
    			// The program should be interrupted before
    			// this sleep finishes. We use select rather
    			// than sleep because in older versions of
    			// glibc the sleep function does some signal
    			// fiddling to handle SIGCHLD.  If this
    			// program is fiddling signals just when the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test installing a signal handler before the Go code starts.
    // This is a lot like ../testcshared/main4.c.
    
    #include <setjmp.h>
    #include <signal.h>
    #include <stdarg.h>
    #include <stddef.h>
    #include <stdio.h>
    #include <stdint.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. api/go1.20.txt

    pkg syscall (freebsd-riscv64), const SIGCHLD Signal #53466
    pkg syscall (freebsd-riscv64), const SIGCONT = 19 #53466
    pkg syscall (freebsd-riscv64), const SIGCONT Signal #53466
    pkg syscall (freebsd-riscv64), const SIGEMT = 7 #53466
    pkg syscall (freebsd-riscv64), const SIGEMT Signal #53466
    pkg syscall (freebsd-riscv64), const SIGINFO = 29 #53466
    pkg syscall (freebsd-riscv64), const SIGINFO Signal #53466
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg net/url, method (*URL) EscapedPath() string
    pkg net/url, type URL struct, RawPath string
    pkg os, func LookupEnv(string) (string, bool)
    pkg os/signal, func Ignore(...os.Signal)
    pkg os/signal, func Reset(...os.Signal)
    pkg reflect, func ArrayOf(int, Type) Type
    pkg reflect, func FuncOf([]Type, []Type, bool) Type
    pkg runtime, func ReadTrace() []uint8
    pkg runtime, func StartTrace() error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		if sig2 == 0 {
    			t.Errorf("got %q; expected signal %q", ee, sig1)
    		} else {
    			t.Errorf("got %q; expected signal %q or %q", ee, sig1, sig2)
    		}
    	} else {
    		return true
    	}
    	return false
    }
    
    func TestOsSignal(t *testing.T) {
    	switch GOOS {
    	case "windows":
    		t.Skip("skipping signal test on Windows")
    	}
    	globalSkip(t)
    	testenv.MustHaveGoBuild(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  8. api/go1.11.txt

    pkg os, const ModeIrregular = 524288
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeType = 2399666176
    pkg os, func UserCacheDir() (string, error)
    pkg os/signal, func Ignored(os.Signal) bool
    pkg regexp/syntax, method (Op) String() string
    pkg runtime/trace, func IsEnabled() bool
    pkg runtime/trace, func Log(context.Context, string, string)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/libgo5/libgo5.go

    package main
    
    import "C"
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    	"time"
    )
    
    // The channel used to read SIGIO signals.
    var sigioChan chan os.Signal
    
    // CatchSIGIO starts catching SIGIO signals.
    //
    //export CatchSIGIO
    func CatchSIGIO() {
    	sigioChan = make(chan os.Signal, 1)
    	signal.Notify(sigioChan, syscall.SIGIO)
    }
    
    // ResetSIGIO stops catching SIGIO signals.
    //
    //export ResetSIGIO
    func ResetSIGIO() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 986 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/testdata/libgo3/libgo3.go

    package main
    
    import "C"
    
    import (
    	"os"
    	"os/signal"
    	"syscall"
    	"time"
    )
    
    // The channel used to read SIGIO signals.
    var sigioChan chan os.Signal
    
    // CatchSIGIO starts catching SIGIO signals.
    //
    //export CatchSIGIO
    func CatchSIGIO() {
    	sigioChan = make(chan os.Signal, 1)
    	signal.Notify(sigioChan, syscall.SIGIO)
    }
    
    // ResetSIGIO stops catching SIGIO signals.
    //
    //export ResetSIGIO
    func ResetSIGIO() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1020 bytes
    - Viewed (0)
Back to top