From: chrubis@suse.cz
To: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v4] fcntl/fcntl31.c: add I/O availability signals test for fcntl(2)
Date: Thu, 20 Mar 2014 15:39:03 +0100 [thread overview]
Message-ID: <20140320143903.GA13924@rei.Home> (raw)
In-Reply-To: <1395216883-24920-1-git-send-email-wangxg.fnst@cn.fujitsu.com>
Hi!
> +static void signal_parent(void)
> +{
> + int ret, fd;
> + pid_t ppid;
> +
> + fd = pipe_fds[1];
> + close(pipe_fds[0]);
> +
> + ret = setpgrp();
> + if (ret < 0) {
> + fprintf(stderr, "child process(%d) setpgrp() failed: %s \n",
> + getpid(), strerror(errno));
> + }
> +
> + /* Wait for parent process to enter sigtimedwait(). */
> + ppid = getppid();
> + TST_PROCESS_STATE_WAIT(NULL, ppid, 'S');
I've added tst_process_state2() that does not use the tst_brkm()
interface and changed this part to use it instead.
And pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-03-20 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 8:14 [LTP] [PATCH v4] fcntl/fcntl31.c: add I/O availability signals test for fcntl(2) Xiaoguang Wang
2014-03-20 14:39 ` chrubis [this message]
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=20140320143903.GA13924@rei.Home \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=wangxg.fnst@cn.fujitsu.com \
/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