aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/T8108.hs
diff options
context:
space:
mode:
authorGravatar Marios Titas <redneb@gmx.com>2013-07-08 03:55:59 -0400
committerGravatar Austin Seipp <aseipp@pobox.com>2013-08-10 20:56:08 -0500
commitef683c6ba703106306732f1da68adfb508236334 (patch)
treef95557963bcba5051481fccc450289bc92bc95a6 /tests/T8108.hs
parent46bfe3d56a2c7732bb6222f3e9ad6ad7a94e13d7 (diff)
Extract the result of get*_r before we deallocate the auxiliary buffer
Also comes with tests. This closes #8108. Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'tests/T8108.hs')
-rw-r--r--tests/T8108.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/T8108.hs b/tests/T8108.hs
new file mode 100644
index 0000000..cf1c764
--- /dev/null
+++ b/tests/T8108.hs
@@ -0,0 +1,8 @@
+import Control.Monad
+import Control.Concurrent
+import System.Posix.User
+
+main = do
+ void $ forkIO $ forever $ getGroupEntryForID 0
+ void $ forkIO $ forever $ getGroupEntryForID 0
+ threadDelay (3*1000*1000)