diff options
| author | Tom Tromey | 2013-07-12 18:44:13 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-07-12 18:44:13 -0600 |
| commit | b34a529f177a6ea32da5cb1254f91bf9d71838db (patch) | |
| tree | 477131abc15d3107b30b635223d87a22550b480b /src/alloc.c | |
| parent | e6f63071a3f7721f55220514b6d9a8ee8c1232d8 (diff) | |
| parent | 5e301d7651c0691bb2bc7f3fbe711fdbe26ac471 (diff) | |
| download | emacs-b34a529f177a6ea32da5cb1254f91bf9d71838db.tar.gz emacs-b34a529f177a6ea32da5cb1254f91bf9d71838db.zip | |
Merge from trunk
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
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]); |