From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WQe7x-0000Pf-AB for ltp-list@lists.sourceforge.net; Thu, 20 Mar 2014 14:39:25 +0000 Date: Thu, 20 Mar 2014 15:39:03 +0100 From: chrubis@suse.cz Message-ID: <20140320143903.GA13924@rei.Home> References: <1395216883-24920-1-git-send-email-wangxg.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1395216883-24920-1-git-send-email-wangxg.fnst@cn.fujitsu.com> Subject: Re: [LTP] [PATCH v4] fcntl/fcntl31.c: add I/O availability signals test for fcntl(2) List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Xiaoguang Wang Cc: ltp-list@lists.sourceforge.net 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