eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'OSProcess':

Home

everywhere
www.exept.de
for:
[back]

Class: OSProcess


Inheritance:

   Object
   |
   +--OSProcess

Package:
stx:libbasic
Category:
System-Support
Version:
rev: ? date: ? ?
user: ?
file: ? directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Stefan Vogel (stefan@zwerg)

Description:


OSProcess is an abstract class. Instances represent operating system processes
(as opposed to Smalltalk processes).


[instance variables:]
    pid         SmallInteger    the process id
    parentPid   SmallInteger    the process id of the parent process
    commandLine String          the command line of the running command.

[class variables:]


Related information:

    Process

Instance protocol:

accessing
o  commandLine

o  commandLine: something

o  parentPid

o  parentPid: something

o  pid

o  pid: something

queries
o  getProcessHandle
some OperatingSystems redefine this to resolve this to a processHandle
(which must be explicitely freed later).
Others simply return the pid here

** This method raises an error - it must be redefined in concrete classes **

o  isAlive
answer true, if the process is still alive

** This method raises an error - it must be redefined in concrete classes **

o  isDead
answer true, if the process is no longer alive

terminating
o  kill
kill the process - the process does not get the chance to clean up

** This method raises an error - it must be redefined in concrete classes **

o  killGroup
killl the processGroup - the processes does not get the chance to clean up

** This method raises an error - it must be redefined in concrete classes **

o  killWithAllChildren
terminate gracefully the process with all of its child processes

** This method raises an error - it must be redefined in concrete classes **

o  terminate
terminate the process gracefully

** This method raises an error - it must be redefined in concrete classes **

o  terminateGroup
terminate the process group.
Under Windows, these is the same as terminateWithhAllChildren,
under unix, this terminates a subset of all children

** This method raises an error - it must be redefined in concrete classes **

o  terminateWithAllChildren
terminate gracefully the process with all of its child processes

** This method raises an error - it must be redefined in concrete classes **



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 21:26:16 GMT