Parcourir la source

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

ambrop7 il y a 15 ans
Parent
commit
be94af2204
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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)