From: Vinson Lee <vlee@twitter.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] tools/t0: Use version of setpgrp that takes no arguments.
Date: Wed, 11 Jul 2012 00:09:09 -0700 [thread overview]
Message-ID: <1341990549-30278-1-git-send-email-vlee@twitter.com> (raw)
IEEE Std 1003.1, 2004 Edition and IEEE Std 1003.1-2008 only have the
version of setpgrp that takes no arguments.
http://pubs.opengroup.org/onlinepubs/009695299/functions/setpgrp.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setpgrp.html
Also fixes build error on Mac OS X 10.7.
Signed-off-by: Vinson Lee <vlee@twitter.com>
---
testcases/open_posix_testsuite/tools/t0.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/open_posix_testsuite/tools/t0.c b/testcases/open_posix_testsuite/tools/t0.c
index d8ac328..96bae9f 100644
--- a/testcases/open_posix_testsuite/tools/t0.c
+++ b/testcases/open_posix_testsuite/tools/t0.c
@@ -101,7 +101,7 @@ int main (int argc, char * argv[])
perror("fork failed");
exit(1);
case 0:
- setpgrp(0, 0);
+ setpgrp();
execvp(argv[2], &argv[2]);
perror("execvp failed");
exit(1);
--
1.7.7.5 (Apple Git-26)
------------------------------------------------------------------------------
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
next reply other threads:[~2012-07-11 7:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 7:09 Vinson Lee [this message]
2012-07-11 14:28 ` [LTP] [PATCH] tools/t0: Use version of setpgrp that takes no arguments chrubis
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=1341990549-30278-1-git-send-email-vlee@twitter.com \
--to=vlee@twitter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.