All of lore.kernel.org
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [RFC PATCH] tst_get_unused_pid and system_specific_process_info
Date: Wed, 25 Jun 2014 14:18:34 +0200	[thread overview]
Message-ID: <20140625121825.GB8523@rei.Home> (raw)
In-Reply-To: <53AABDA5.9010107@oracle.com>

Hi!
> >> 1. We remove get_max_pids(), because it's used only in one place (get_free_pids())
> >>     and can be subsituted with
> >>     SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid);
> >>
> >> 2. We rename get_free_pids() to tst_get_free_pids() for consistency. And changing a bit its
> >>     declaration to use SAFE_FILE_SCANF().
> >>
> >> 3. system_specific_process_info.h is used only in one place - msgctl11.
> >>     I think it's not a problem if I move its content to test.h. For consistency.
> >>
> >> 4. And add tst_get_unused_pid() to system_specific_process_info.c. To not
> >>     create a new source file. And this funcion looks logically coupled with tst_get_free_pids().
> >>
> >> I'm going to present pp. 1-3 in one patch, and p. 4 - in a separate patch.
> >>
> >> What do you think about the general idea?
> >
> > Sounds good to me.
> >
> > Perhaps we should also rename the system_specific_process_info.c to
> > something shorter and more to the point. Maybe just process_info.c or
> > pidutils.c or something similar.
> >
> Maybe tst_pid.c ? :)

Sounds good.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      parent reply	other threads:[~2014-06-25 12:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 10:00 [LTP] [RFC PATCH] tst_get_unused_pid and system_specific_process_info Stanislav Kholmanskikh
2014-06-25 12:14 ` chrubis
     [not found]   ` <53AABDA5.9010107@oracle.com>
2014-06-25 12:18     ` 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=20140625121825.GB8523@rei.Home \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=stanislav.kholmanskikh@oracle.com \
    --cc=vasily.isaenko@oracle.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 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.