From 8ef9d46f4d0ff4f0073da6bee7ed0cb5f9035ead Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 15 Mar 2021 10:21:29 -0400 Subject: use internal malloc for posix_spawn file actions objects this makes it possible to perform actions on file actions objects with a libc-internal lock held without creating lock order relationships that are silently imposed on an application-provided malloc. --- src/process/fdop.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/process/fdop.h b/src/process/fdop.h index 5adf1443..7cf733b2 100644 --- a/src/process/fdop.h +++ b/src/process/fdop.h @@ -10,3 +10,8 @@ struct fdop { mode_t mode; char path[]; }; + +#define malloc __libc_malloc +#define calloc __libc_calloc +#define realloc undef +#define free __libc_free -- cgit v1.2.1