Browse Source

BProcess: do not allow sending signals to a process from the handler when it has already terminated and been waited for

ambrop7 15 years ago
parent
commit
be94af2204
1 changed files with 2 additions and 0 deletions
  1. 2 0
      process/BProcess.c

+ 2 - 0
process/BProcess.c

@@ -347,6 +347,7 @@ void BProcess_Free (BProcess *o)
 int BProcess_Terminate (BProcess *o)
 {
     DebugObject_Access(&o->d_obj);
+    DebugError_AssertNoError(&o->d_err);
     
     ASSERT(o->pid > 0)
     
@@ -361,6 +362,7 @@ int BProcess_Terminate (BProcess *o)
 int BProcess_Kill (BProcess *o)
 {
     DebugObject_Access(&o->d_obj);
+    DebugError_AssertNoError(&o->d_err);
     
     ASSERT(o->pid > 0)