Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365621 - dupx-0.1.ebuild (New Package)
Summary: dupx-0.1.ebuild (New Package)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
Depends on:
Reported: 2011-05-01 20:04 UTC by reisio
Modified: 2011-05-02 06:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

dupx-0.1.ebuild (dupx-0.1.ebuild,493 bytes, text/plain)
2011-05-01 20:04 UTC, reisio

Note You need to log in before you can comment on or make changes to this bug.
Description reisio 2011-05-01 20:04:07 UTC
Created attachment 271801 [details]

"dupx - redirect input/output/error of a running process
If you're familiar with dup(2) *nix system call, you know that if you issue it from the process space to an open file, you can remap any file descriptor to a new file and all subsequent calls to read/write(2) will read/write from/to the file.  Thus the simple idea behind dupx is to use gdb to attach to the process and then do a dup(2) call on its file descriptors.
Dupx is currently implemented as a simple shell script that drives GDB."