[compiler-rt] cabe31f - [sanitizers] Remove the message queue with IPC_RMID after D82897

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 21:37:31 PDT 2020


Author: Fangrui Song
Date: 2020-09-22T21:37:24-07:00
New Revision: cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8

URL: https://github.com/llvm/llvm-project/commit/cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8
DIFF: https://github.com/llvm/llvm-project/commit/cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8.diff

LOG: [sanitizers] Remove the message queue with IPC_RMID after D82897

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
index c31abe997068..6fff2c901086 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c
@@ -25,6 +25,7 @@ int main() {
   int res = msgsnd(msgq, &msg, MSG_BUFLEN, IPC_NOWAIT);
   if (res) {
     fprintf(stderr, "Error sending message! %s\n", strerror(errno));
+    msgctl(msgq, IPC_RMID, NULL);
     return -1;
   }
 


        


More information about the llvm-commits mailing list