exec

package
v1.2.117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SysProcAttrSetsid

func SysProcAttrSetsid(attr *syscall.SysProcAttr)

SysProcAttrSetsid run a program in a new session, is used to detach the process from the parent (normally a shell)

The disowning of a child process is accomplished by executing the system call setpgrp() or setsid(), (both of which have the same functionality) as soon as the child is forked. These calls create a new process session group, make the child process the session leader, and set the process group ID to the process ID of the child. https://bsdmag.org/unix-kernel-system-calls/

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL