bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36287: 26.2.90; On macOS, process-attributes returns truncated comma


From: Andreas Schwab
Subject: bug#36287: 26.2.90; On macOS, process-attributes returns truncated command name
Date: Wed, 19 Jun 2019 10:38:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)

On Jun 19 2019, Xu Chunyang <mail@xuchunyang.me> 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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]