Skip to content

A Go package to control another process and call system calls in it. Read-only mirror of https://gitlab.com/tozd/go/pcontrol

License

Notifications You must be signed in to change notification settings

tozd/go-pcontrol

Repository files navigation

Control another process

pkg.go.dev Go Report Card pipeline status coverage report

A Go package that allows you to attach to a running process and call system calls from inside the attached process.

It works on Linux and internally uses ptrace.

It was made for use in dinit to change stdout and stderr of running processes, but maybe it comes handy to somebody else as well.

Installation

This is a Go package. You can add it to your project using go get:

go get gitlab.com/tozd/go/pcontrol

It requires Go 1.23 or newer.

Usage

See full package documentation with examples on pkg.go.dev.

GitHub mirror

There is also a read-only GitHub mirror available, if you need to fork the project there.

About

A Go package to control another process and call system calls in it. Read-only mirror of https://gitlab.com/tozd/go/pcontrol

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published