Boost C++ Libraries

PrevUpHomeNext

Class status

boost::process::status — Status returned by a finalized child process.

Synopsis

class status {
public:
// construct/copy/destruct
status(int);

// public member functions
bool exited(void) const;
int exit_status(void) const;
};

Description

This class represents the status returned by a child process after it has terminated. It only provides that information available under all supported platforms.

posix_status

status construct/copy/destruct

  1. status(int flags);

    Creates a new status object representing the exit status of a child process.

    Parameters:
    flags

    In a POSIX system this parameter contains the flags returned by the waitpid() call. In a Win32 system it contains the exit code only.

status public member functions

  1. bool exited(void ) const;

    Returns whether the process exited gracefully or not.

  2. int exit_status(void ) const;

    If the process exited, returns the exit code it returned.

    Requires:

    exited() is true.

Copyright 2006 Julio M. Merino Vidal

PrevUpHomeNext