[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd,commited] hurd: Document dtable_cloexec size convention.
From: |
Samuel Thibault |
Subject: |
[hurd,commited] hurd: Document dtable_cloexec size convention. |
Date: |
Sun, 11 Nov 2018 19:02:21 +0100 |
* sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
of dtablesize for allocating dtable_cloexec.
---
ChangeLog | 2 ++
sysdeps/mach/hurd/spawni.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index ae5b4a136d..e6f42b41b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
* hurd/Versions (_hurd_port_move): Export function.
* sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
symbol.
+ * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
+ of dtablesize for allocating dtable_cloexec.
2018-11-09 Martin Sebor <address@hidden>
diff --git a/sysdeps/mach/hurd/spawni.c b/sysdeps/mach/hurd/spawni.c
index c08f2a5b5a..b98e991d3b 100644
--- a/sysdeps/mach/hurd/spawni.c
+++ b/sysdeps/mach/hurd/spawni.c
@@ -405,7 +405,7 @@ __spawni (pid_t *pid, const char *file,
dtable = __alloca (dtablesize * sizeof (dtable[0]));
ulink_dtable = __alloca (dtablesize * sizeof (ulink_dtable[0]));
dtable_cells = __alloca (dtablesize * sizeof (dtable_cells[0]));
- dtable_cloexec = __alloca (dtablesize);
+ dtable_cloexec = __alloca (orig_dtablesize);
for (i = 0; i < dtablesize; ++i)
{
struct hurd_fd *const d = _hurd_dtable[i];
--
2.19.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [hurd,commited] hurd: Document dtable_cloexec size convention.,
Samuel Thibault <=