Hi  Rishi,

This patch is prepared by using latest git.
I have placed patch below and attached to this e-mail.

Rishi, please use attached file as patch to apply to master, because
dos2unix file issue may come.

Signed-off-by: Naresh Kamboju < [email protected] >

---
 testcases/open_posix_testsuite/conformance/interfaces/sem_post/8-1.c
|    4    3 +     1 -     0 !
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/8-1.c
===================================================================
--- a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/8-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/8-1.c
@@ -161,7 +161,6 @@ int main()
        }
        fprintf(stderr, "P: child_1:%d forked\n", c_1);

-       sleep(1);
        c_2 = fork();
        if (c_2 == 0)
        {
@@ -198,6 +197,9 @@ int main()
                //printf("val = %d\n", val);
        } while (val != 0);
        */
+
+       /* Synchronization required before release the lock */
+       sleep(1);
        /* Ok, let's release the lock */
        fprintf(stderr, "P: release lock\n");
        sem_post(sem);

Best regards,
Naresh Kamboju

Attachment: posix-sem-post-unstable-fix-8-1.patch
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to