|
|
Class: OSProcess
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)
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:]
Process
accessing
-
commandLine
-
-
commandLine: something
-
-
parentPid
-
-
parentPid: something
-
-
pid
-
-
pid: something
-
queries
-
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 **
-
isAlive
-
answer true, if the process is still alive
** This method raises an error - it must be redefined in concrete classes **
-
isDead
-
answer true, if the process is no longer alive
terminating
-
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 **
-
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 **
-
killWithAllChildren
-
terminate gracefully the process with all of its child processes
** This method raises an error - it must be redefined in concrete classes **
-
terminate
-
terminate the process gracefully
** This method raises an error - it must be redefined in concrete classes **
-
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 **
-
terminateWithAllChildren
-
terminate gracefully the process with all of its child processes
** This method raises an error - it must be redefined in concrete classes **
|