Subject: Re: bug#36287: 26.2.90; On macOS, process-attributes returns truncated command name

From: Andreas Schwab <[email-masked]>
Date: Wed, 19 Jun 2019 10:38:15 +0200

On Jun 19 2019, Xu Chunyang <[email-masked]> wrote:

> (alist-get 'comm (process-attributes 45329))
> ;; => "Google Chrome He"
>
> But the command name is actually 'Google Chrome Helper' as the following
> shows

That's probably a kernel limitation.  The Linux kernel also remembers no
more than 15 characters of the command name.  You need to peek that the
process's memory to retrieve the full name.

Andreas.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."