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

private-OS interface
o  code: something
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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 18 Aug 2022 14:16:41 GMT