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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f4fd63 · Dec 8, 2024

History

56 Commits
Jun 19, 2023
Oct 4, 2023
Sep 15, 2024
Dec 8, 2024
Sep 7, 2024
Jun 19, 2023
Jun 19, 2023
Oct 4, 2023
Sep 6, 2024
Jun 19, 2023
Sep 15, 2024
Sep 6, 2024
Sep 6, 2024
Sep 6, 2024
Sep 6, 2024
Sep 6, 2024
Sep 20, 2023
Sep 6, 2024

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

Packages

No packages published