process_status


An os_process_status object contains information about the status of a process, and is obtained with one of the wait...() family of functions in os_this_process . An os_process_status normally is used to determine the way that a process terminated.

Library

Platform<ToolKit> for UNIX

Declaration

#include <ospace/unix/procstat.h>

class os_process_status

Interface

Constructor
os_process_status( const os_process_status& status )
Constructs an object that is a copy of status .
Constructor
os_process_status()
Constructs an object with an undefined PID and status.
<
bool operator<( const os_process_status& status ) const
Returns true if the object is less than status .
=
os_process_status& operator=( const os_process_status& status )
Assigns an object from status .
==
bool operator==( const os_process_status& status ) const
Returns true if the process and status are the same as status .
(int)
operator int() const
Returns the exit code.
core_dumped
bool core_dumped() const
Returns true if the object has dumped the core.
defined
bool defined() const
Returns true if the status is not OS_UNDEFINED .
exit_code
int exit_code() const
Returns the exit code.
pid
os_pid_t pid() const
Returns the process ID.
print
void print( ostream& stream ) const
Prints to stream .
process
os_pid_t process() const
Returns the process ID.
resumed
bool resumed() const
Returns true if the object was suspended and then resumed.
signal
os_signal signal() const
If the object was terminated, or is currently suspended, returns the signal that was used; otherwise, returns a default signal.
suspended
bool suspended() const
Returns true if this process is suspended.
terminated_by_signal
bool terminated_by_signal() const
Returns trues if the process was terminated by a signal.
terminated_normally
bool terminated_normally() const
Returns true if the process terminated normally.

Non-Member Functions

<<
ostream& operator<<( ostream& stream , const os_process_status& status )
Prints status to stream .

Universal Streaming Service

#include <ospace/uss/unix.h>
<<
os_bstream& operator<<( os_bstream& stream , const os_process_status& status )
Writes status to stream .
>>
os_bstream& operator>>( os_bstream& stream , os_process_status& status )
Reads status from stream .

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only. - For use by licensed users only.