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-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YiNXS-0007sm-IW for ltp-list@lists.sourceforge.net; Wed, 15 Apr 2015 13:39:34 +0000 Received: from aserp1040.oracle.com ([141.146.126.69]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1YiNXR-0000bc-AT for ltp-list@lists.sourceforge.net; Wed, 15 Apr 2015 13:39:34 +0000 Message-ID: <552E6A0C.1030908@oracle.com> Date: Wed, 15 Apr 2015 16:39:24 +0300 From: Stanislav Kholmanskikh MIME-Version: 1.0 References: <1429090029-25456-1-git-send-email-stanislav.kholmanskikh@oracle.com> <2086590012.310353.1429103623121.JavaMail.zimbra@redhat.com> In-Reply-To: <2086590012.310353.1429103623121.JavaMail.zimbra@redhat.com> Subject: Re: [LTP] [PATCH] max_map_count: tst_fork() instead of fork() 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: Jan Stancek Cc: vasily isaenko , ltp-list@lists.sourceforge.net On 04/15/2015 04:13 PM, Jan Stancek wrote: > > > > > ----- Original Message ----- >> From: "Stanislav Kholmanskikh" >> To: ltp-list@lists.sourceforge.net >> Cc: "vasily isaenko" >> Sent: Wednesday, 15 April, 2015 11:27:09 AM >> Subject: [LTP] [PATCH] max_map_count: tst_fork() instead of fork() >> >> In order to put output messages in order and remove "duplicates", >> we need a fflush() before forking and tst_fork() does it. >> >> Signed-off-by: Stanislav Kholmanskikh > > Should be safe even this to release. > > Reviewed-by: Jan Stancek Thank you. Pushed. > > Regards, > Jan > >> --- >> testcases/kernel/mem/tunable/max_map_count.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/testcases/kernel/mem/tunable/max_map_count.c >> b/testcases/kernel/mem/tunable/max_map_count.c >> index 96ec2b8..2c0599e 100644 >> --- a/testcases/kernel/mem/tunable/max_map_count.c >> +++ b/testcases/kernel/mem/tunable/max_map_count.c >> @@ -200,7 +200,7 @@ static void max_map_count_test(void) >> while (max_maps <= max_iters) { >> set_sys_tune("max_map_count", max_maps, 1); >> >> - switch (pid = fork()) { >> + switch (pid = tst_fork()) { >> case -1: >> tst_brkm(TBROK | TERRNO, cleanup, "fork"); >> case 0: >> -- >> 1.7.1 >> >> >> ------------------------------------------------------------------------------ >> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >> Develop your own process in accordance with the BPMN 2 standard >> Learn Process modeling best practices with Bonita BPM through live exercises >> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ >> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >> _______________________________________________ >> Ltp-list mailing list >> Ltp-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ltp-list >> ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list