Boost C++ Libraries

PrevUpHomeNext

Class posix_status

boost::process::posix_status — Status returned by a finalized child process on a POSIX system.

Synopsis

class posix_status : public boost::process::status {
public:
  // construct/copy/destruct
  posix_status(const status &);

  // public member functions
  bool signaled(void) const;
  int term_signal(void) const;
  bool dumped_core(void) const;
  bool stopped(void) const;
  int stop_signal(void) const;
};

Description

This class represents the status returned by a child process after it has terminated. It contains some methods not available in the status class that provide information only available in POSIX systems.

posix_status construct/copy/destruct

  1. posix_status(const status & s);

    Creates a new status object representing the exit status of a child process. The construction is done based on an existing status object which already contains all the available information: this class only provides controlled access to it.

posix_status public member functions

  1. bool signaled(void ) const;

    Returns whether the process exited due to an external signal. The result is always false in Win32 systems.

  2. int term_signal(void ) const;

    If the process was signaled, returns the terminating signal code. Cannnot be called under Win32 because the preconditions will not ever be met.

    Requires:

    signaled() is true.

  3. bool dumped_core(void ) const;

    If the process was signaled, returns whether the process produced a core dump. Cannnot be called under Win32 because the preconditions will not ever be met.

    Requires:

    signaled() is true.

  4. bool stopped(void ) const;

    Returns whether the process was stopped by an external signal. The result is always false in Win32 systems.

  5. int stop_signal(void ) const;

    If the process was stopped, returns the stop signal code. Cannnot be called under Win32 because the preconditions will not ever be met.

    Requires:

    signaled() is true.

Copyright © 2006 Julio M. Merino Vidal

PrevUpHomeNext