Skip to contentSkip to conversation

rt_sigprocmask01: fix error of wrong return code

PATCH In review Peng Haitao 2 participants 2 messages Jan 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt_sigprocmask01: fix error of wrong return code

Hi Garrett,

"return 1" should be replaced with "tst_exit()".

---
 .../syscalls/rt_sigprocmask/rt_sigprocmask01.c     |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c +2 -3
index fca2276..c052a3a 100644
@@ -236,6 +236,5 @@ int main(int ac, char **av) {
 
 	cleanup();
 
-	return 1;
-
-}
\ No newline at end of file
+	tst_exit();
+}
Signature · 17 lines
1.7.3.1

-- 
Best Regards,
Peng Haitao


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw
Quoted 3 lines · Peng Haitao

Hi Garrett,

"return 1" should be replaced with "tst_exit()".

Committed -- thanks.
-Garrett

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list