Re: [LTP] [PATCH v4] fcntl/fcntl31.c: add I/O availability signals test for fcntl(2)

chrubis
2014-03-20T14:39:25Z

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