aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 230b3b614d7..6ef6af1e3a1 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4750,7 +4750,7 @@ valid_pointer_p (void *p)
4750 Unfortunately, we cannot use NULL_DEVICE here, as emacs_write may 4750 Unfortunately, we cannot use NULL_DEVICE here, as emacs_write may
4751 not validate p in that case. */ 4751 not validate p in that case. */
4752 4752
4753 if (pipe (fd) == 0) 4753 if (pipe2 (fd, O_CLOEXEC) == 0)
4754 { 4754 {
4755 bool valid = emacs_write (fd[1], (char *) p, 16) == 16; 4755 bool valid = emacs_write (fd[1], (char *) p, 16) == 16;
4756 emacs_close (fd[1]); 4756 emacs_close (fd[1]);