SVNews r330324

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-03 10:43:41 - r330324 by eadler (Eitan Adler)

Complete list of files affected by revision r330324:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/bin/pkill/pkill.c  

Commit message:

MFC r322210,r322613,r322831:

pgrep naively appends the delimiter to all PIDs including the last
e.g. "pgrep -d, getty" outputs "1399,1386,1309,1308,1307,1306,1305,1302,"
Ensure the list is correctly delimited by suppressing the emission of the
delimiter after the final PID.

The r322210 change to pgrep's PID delimiting behaviour causes pgrep's default
output to not include a trailing new line, which is a potential POLA violation
for existing consumers. Change pgrep to always emit a trailing new line on
completion of its output, regardless of the delimeter in use (which technically
is also a potential POLA violation for existing consumers that rely on the
pre-r322210 buggy behaviour, but a line has to be drawn somewhere).

Only emit the trailing new line added in r322613 when not operating in quiet

PR: 221534 (r322613)


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 4 ms, 2 files printed. Current time is 2018-03-24 13:46:34. All times are in UTC/GMT.