Skip to content

kill: modernization after undeprecation

Sami Kerola util-linux 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7kill: add long optionsmisc-utils/kill.c+5 -50 replies
2/7kill: align with howto-usage-function.txtmisc-utils/kill.c+18 -70 replies
3/7kill: use libc error printing facilities and exit valuesmisc-utils/kill.c misc-utils/procs.c+24 -320 replies
4/7kill, procs: fix coding stylemisc-utils/kill.c misc-utils/procs.c+290 -2870 replies
5/7kill, procs: move function declarations to kill.hmisc-utils/kill.c misc-utils/kill.h misc-utils/procs.c+7 -40 replies
6/7kill, procs: use pid_t for pidsmisc-utils/kill.c misc-utils/kill.h misc-utils/procs.c+12 -130 replies
7/7docs: add long options and tidy up kill.1misc-utils/kill.1+46 -420 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] kill: modernization after undeprecation

Hi Karel, et.al.,

Here are few patches to kill which was undeprecated late last year, see commit 32fca0e9c49599667d19f157fade6fa46908271a. I had a look of the command and decided it should get the same usage(), coding style, etc, fixes that are done to other commands earlier.

The only notable change in this series is second last patch which will make kill to use pid_t. I am sure that is better than having int representing pids, altough int might often work. The patch also makes some pid_t's to be casted long which may be a bit overkill. Perhaps it is better to grant enough head room to pid space than cry when type wrap results to kill of arbitrary process(es).

The following changes since commit 02658d9bb56976b462724b306e9e1f4385ef4b93:

tests: make utmpdump TZ independent (2013-03-04 13:10:09 +0100)

are available in the git repository at:

git://github.com/kerolasa/lelux-utiliteetit.git 2013wk09

for you to fetch changes up to 4f6dba8146a461dee9e62b5cf5ff62425ad01681:

docs: add long options and tidy up kill.1 (2013-03-07 23:08:53 +0000)

----------------------------------------------------------------
Sami Kerola (7):
kill: add long options
kill: align with howto-usage-function.txt
kill: use libc error printing facilities and exit values kill, procs: fix coding style
kill, procs: move function declarations to kill.h kill, procs: use pid_t for pids
docs: add long options and tidy up kill.1

 misc-utils/kill.1  |  88 ++++++-----
 misc-utils/kill.c  | 442 ++++++++++++++++++++++++++---------------------------
 misc-utils/kill.h  |   8 +-
 misc-utils/procs.c | 170 +++++++++++----------
 4 files changed, 360 insertions(+), 348 deletions(-)