public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: DAN LI <li.dan@cn.fujitsu.com>
To: LTP list <ltp-list@lists.sourceforge.net>
Subject: [LTP] [PATCH 2/2]sigpause/3-1.c Fix hung
Date: Tue, 28 Aug 2012 17:05:27 +0800	[thread overview]
Message-ID: <503C89D7.5030305@cn.fujitsu.com> (raw)
In-Reply-To: <503C8866.9000909@cn.fujitsu.com>

If sem is set as INTHREAD finally,the loop will be endless.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
---
 .../open_posix_testsuite/conformance/interfaces/sigpause/3-1.c      |
  3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git
a/testcases/open_posix_testsuite/conformance/interfaces/sigpause/3-1.c
b/testcases/open_posix_testsuite/conformance/interfaces/sigpause/3-1.c
index 00024ed..6f1f454 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/sigpause/3-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/sigpause/3-1.c
@@ -30,7 +30,7 @@
 #define INMAIN 1

 int result = 2;
-int sem = INMAIN;
+int sem = INTHREAD;

 void handler()
 {
@@ -86,7 +86,6 @@ int main()
 		return PTS_UNRESOLVED;
 	}

-	sem = INTHREAD;
 	while (sem == INTHREAD)
 		sleep(1);

-- 
1.7.10.2

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2012-08-28  9:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28  8:59 [LTP] [PATCH 1/2]sigpause/3-1.c Clean up DAN LI
2012-08-28  9:05 ` DAN LI [this message]
2012-08-29  3:14   ` [LTP] [PATCH 2/2]sigpause/3-1.c Fix hung Wanlong Gao
2012-08-29  3:14 ` [LTP] [PATCH 1/2]sigpause/3-1.c Clean up Wanlong Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=503C89D7.5030305@cn.fujitsu.com \
    --to=li.dan@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox