#OTHER
authorClaus Gittinger <cg@exept.de>
Thu, 11 Feb 2016 15:46:36 +0100
changeset 19173 82f5c789a94c
parent 19172 7aee5e9a31ba
child 19174 803569fe8891
#OTHER class: AbstractOperatingSystem added: #interruptProcess: #interruptProcessGroup: #sendSignal:to:toGroup:toAll:
AbstractOperatingSystem.st
--- a/AbstractOperatingSystem.st	Thu Feb 11 15:42:08 2016 +0100
+++ b/AbstractOperatingSystem.st	Thu Feb 11 15:46:36 2016 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
 	      All Rights Reserved
@@ -3264,6 +3266,18 @@
 %}
 !
 
+interruptProcess:processId
+    "interrupt an OS process (CTRL-C)."
+
+    self subclassResponsibility
+!
+
+interruptProcessGroup:processGroupId
+    "interrupt an OS process group (CTRL-C)."
+
+    self subclassResponsibility
+!
+
 interruptsBlocked
     "return true, if interrupt handling is currently disabled;
      false otherwise."
@@ -3391,6 +3405,15 @@
     self subclassResponsibility
 !
 
+sendSignal:signalNumber to:processId toGroup:toGroupBoolean toAll:toAllBoolean
+    "send a unix signal to some process (maybe myself).
+     Returns false if any error occurred, true otherwise.
+
+     Do not confuse UNIX signals with Smalltalk-Signals."
+
+    self subclassResponsibility
+!
+
 startSpyTimer
     "trigger a spyInterrupt, to be signalled after some short (virtual) time.
      Return true, if the spy-timerInterrupt was enabled.