|
Class: OSProcessStatus (private in UnixOperatingSystem
This class is only visible from within
UnixOperatingSystem.
Object
|
+--UnixOperatingSystem::OSProcessStatus
- Package:
- stx:libbasic
- Category:
- OS-Unix
- Owner:
- UnixOperatingSystem
- Author:
- Stefan Vogel
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
OperatingSystem
instance creation
-
pid: pid status: status code: code core: core
-
private interface for UnixOperatingSystem
-
processCreationFailure
-
private interface for UnixOperatingSystem
accessing
-
code
-
return the exitcode / signalNumber
-
core
-
return true if core has been dumped, false otherwise
-
pid
-
return the pid
-
status
-
return status as a Symbol;
one of #exit #signal #stop #continue
initialization
-
pid: newPid status: newStatus code: newCode core: newCore
-
printing & storing
-
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
-
code: exitCode
-
set the exitCode
-
core: something
-
set core
-
pid: something
-
set pid
-
status: something
-
set status
queries
-
couldNotExecute
-
return true when a command could not be executed
-
isError
-
true if process terminated with error
-
stillAlive
-
true if process is still alive
-
success
-
true if process terminated with success
|