libexcept 1.1.19
Stack trace along C++ exceptions
Namespaces | Functions
file_inheritance.cpp File Reference

Implementation of a test of the files inherited. More...

#include "libexcept/file_inheritance.h"
#include <fstream>
#include <iostream>
#include <list>
#include <memory>
#include <dirent.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for file_inheritance.cpp:

Go to the source code of this file.

Namespaces

namespace  libexcept
 

Functions

std::string libexcept::get_command_line (pid_t pid)
 Load the command line of the specified process.
 
void libexcept::verify_inherited_files (allowed_fds_t allowed)
 Check the list of files opened in this process.
 

Detailed Description

Most processes are expected to only inherit stdin, stdout, and stderr. This mimplementation verifies that this is the case.

Definition in file file_inheritance.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.