Golang processes: Difference between revisions

From wikinotes
(Created page with " = Documentation = <blockquote> {| class="wikitable" |- | <code>os</code> || https://pkg.go.dev/os@go1.18.3 |- |} </blockquote><!-- Documentation --> = Current Process = <blo...")
 
Line 17: Line 17:
os.Getuid()
os.Getuid()
os.Getgid()
os.Getgid()
os.Exit()
os.Exit(0) // exit process with exitcode '1'
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Current Process -->
</blockquote><!-- Current Process -->

Revision as of 04:00, 18 June 2022

Documentation

os https://pkg.go.dev/os@go1.18.3

Current Process

os.Executable()
os.Getpid()
os.Getppid()
os.Getuid()
os.Getgid()
os.Exit(0)  // exit process with exitcode '1'

Manage Processes

os.Process.FindProcess()
os.Process.Kill()
os.Process.Signal()

Subprocess

os.Process.StartProcess

ProcAttr
Process

Process Info