Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 365621

Summary: dupx-0.1.ebuild (New Package)
Product: Gentoo Linux Reporter: reisio <gentoo>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: dupx-0.1.ebuild

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."