]> Savannah Git Hosting - gnulib.git/commit
get_ppid_of, get_progname_of: Fix runtime error on Mac OS X < 10.5.
authorBruno Haible <bruno@clisp.org>
Tue, 21 Dec 2021 20:38:30 +0000 (21:38 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 21 Dec 2021 20:45:05 +0000 (21:45 +0100)
commit119622a83d47b01b5a9fb2af4542cdb45f4eb83b
treeb2dedcb4da0ee2d3ac559d09666cd8a5af876e11
parent46540554bb4564e2929d5fecdae194701142777d
get_ppid_of, get_progname_of: Fix runtime error on Mac OS X < 10.5.

Reported by Evan Miller <emmiller@gmail.com>
<https://lists.gnu.org/archive/html/bug-gnulib/2021-12/msg00081.html>.

* lib/get_ppid_of.c (proc_pidinfo): Declare with WEAK_IMPORT_ATTRIBUTE.
(get_ppid_of): Test whether the symbol declared weak evaluates to
non-NULL before invoking it.
* lib/get_progname_of (get_progname_of): Declare with
WEAK_IMPORT_ATTRIBUTE.
(get_ppid_of): Test whether the symbol declared weak evaluates to
non-NULL before invoking it.
ChangeLog
lib/get_ppid_of.c
lib/get_progname_of.c