Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Setctty (0.23 sec)

  1. src/syscall/exec_unix.go

    		if err != nil {
    			return 0, err
    		}
    	}
    
    	// Both Setctty and Foreground use the Ctty field,
    	// but they give it slightly different meanings.
    	if sys.Setctty && sys.Foreground {
    		return 0, errorspkg.New("both Setctty and Foreground set in SysProcAttr")
    	}
    	if sys.Setctty && sys.Ctty >= len(attr.Files) {
    		return 0, errorspkg.New("Setctty set but Ctty not valid in child")
    	}
    
    	acquireForkLock()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/syscall/exec_libc2.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. src/syscall/exec_bsd.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/syscall/exec_libc.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. src/syscall/exec_freebsd.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/syscall/exec_unix_test.go

    func TestInvalidExec(t *testing.T) {
    	t.Parallel()
    	t.Run("SetCtty-Foreground", func(t *testing.T) {
    		t.Parallel()
    		cmd := create(t)
    		cmd.proc.SysProcAttr = &syscall.SysProcAttr{
    			Setctty:    true,
    			Foreground: true,
    			Ctty:       0,
    		}
    		if err := cmd.proc.Start(); err == nil {
    			t.Error("expected error setting both SetCtty and Foreground")
    		}
    	})
    	t.Run("invalid-Ctty", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. src/syscall/exec_linux.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal.
    	Ctty    int  // Controlling TTY fd.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. src/os/signal/signal_cgo_test.go

    	cmd.Stdin = os.Stdin
    	cmd.Stdout = os.Stdout // for logging
    	cmd.Stderr = os.Stderr
    	cmd.ExtraFiles = []*os.File{procTTY, controlW}
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setsid:  true,
    		Setctty: true,
    		Ctty:    ptyFD,
    	}
    
    	if err := cmd.Start(); err != nil {
    		t.Fatal(err)
    	}
    
    	if err := procTTY.Close(); err != nil {
    		t.Errorf("closing procTTY: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ManagedTypeDslIntegrationTest.groovy

            buildFile << '''
    @Managed interface Person extends Named {
        Address getAddress()
    }
    
    @Managed interface Address {
        String getCity()
        void setCity(String s)
    }
    
    model {
        tasks {
            show(Task) {
                doLast {
                    def person = $.barry
                    println "$person.name lives in $person.address.city"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/modelRules/modelDsl/groovy/build.gradle

    @Managed
    interface Address {
        String getCity()
        void setCity(String city)
    }
    
    @Managed
    interface Person {
        String getFirstName()
        void setFirstName(String n)
    
        String getLastName()
        void setLastName(String n)
    
        Address getAddress()
    }
    
    class PersonRules extends RuleSource {
        @Model
        void people(ModelMap<Person> people) {
        }
    }
    
    apply plugin: PersonRules
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top