eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'UnixOperatingSystem::OSProcessStatus':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: OSProcessStatus (private in UnixOperatingSystem

This class is only visible from within UnixOperatingSystem.

Inheritance:

   Object
   |
   +--UnixOperatingSystem::OSProcessStatus

Package:
stx:libbasic
Category:
OS-Unix
Owner:
UnixOperatingSystem
Author:
Stefan Vogel

Description:


This is an auxillary class, that holds information about status changes of
operating system processes (these are no smalltalk processes!).

[Instance variables:]

    pid     <Integer>       OS-Process identifier

    status  <Symbol>        either #exit #signal #stop #continue

    code    <Integer>       either exitcode or signalnumber

    core    <Boolean>       true if core has been dumped


Related information:

    OperatingSystem

Class protocol:

instance creation
o  pid: pid status: status code: code core: core
private interface for UnixOperatingSystem

o  processCreationFailure
private interface for UnixOperatingSystem


Instance protocol:

accessing
o  code
return the exitcode / signalNumber

o  core
return true if core has been dumped, false otherwise

o  pid
return the pid

o  status
return status as a Symbol;
one of #exit #signal #stop #continue

initialization
o  pid: newPid status: newStatus code: newCode core: newCore

printing & storing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

private-OS interface
o  code: exitCode
set the exitCode

o  core: something
set core

o  pid: something
set pid

o  status: something
set status

queries
o  couldNotExecute
return true when a command could not be executed

o  isError
true if process terminated with error

o  stillAlive
true if process is still alive

o  success
true if process terminated with success



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:21:02 GMT