HomeFreeBSD

pgrep naively appends the delimiter to all PIDs including the last

Description

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.

Reviewed by: imp, kib
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D8537

Details

Provenance
lstewartAuthored on Aug 8 2017, 12:31 AM
Parents
rG79f39c6aa19e: - If available, use TRIM instead of ERASE for implementing BIO_DELETE.
Branches
Unknown
Tags
Unknown

Event Timeline