diff options
author | Fangrui Song <i@maskray.me> | 2020-09-22 21:36:59 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2020-09-22 21:37:24 -0700 |
commit | cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8 (patch) | |
tree | 5ef704d0a611b073dd503d965b0cf9731e4819ad | |
parent | f1746be66673bc2b59f7aaad1c6a7938ed98194b (diff) | |
download | llvm-cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8.zip llvm-cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8.tar.gz llvm-cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8.tar.bz2 |
[sanitizers] Remove the message queue with IPC_RMID after D82897
-rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c index c31abe9..6fff2c9 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; } |