Refactoring to allow different way of getting file position information
Get file descriptor position from /proc/<pid>/fdinfo instead of using lsof.
Better error reporting of exec errors.