mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
hurd: Document dtable_cloexec size convention.
* sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead of dtablesize for allocating dtable_cloexec.
This commit is contained in:
parent
88b26b7e91
commit
58bb655acb
@ -12,6 +12,8 @@
|
|||||||
* hurd/Versions (_hurd_port_move): Export function.
|
* hurd/Versions (_hurd_port_move): Export function.
|
||||||
* sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
|
* sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
|
||||||
symbol.
|
symbol.
|
||||||
|
* sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
|
||||||
|
of dtablesize for allocating dtable_cloexec.
|
||||||
|
|
||||||
2018-11-09 Martin Sebor <msebor@redhat.com>
|
2018-11-09 Martin Sebor <msebor@redhat.com>
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@ __spawni (pid_t *pid, const char *file,
|
|||||||
dtable = __alloca (dtablesize * sizeof (dtable[0]));
|
dtable = __alloca (dtablesize * sizeof (dtable[0]));
|
||||||
ulink_dtable = __alloca (dtablesize * sizeof (ulink_dtable[0]));
|
ulink_dtable = __alloca (dtablesize * sizeof (ulink_dtable[0]));
|
||||||
dtable_cells = __alloca (dtablesize * sizeof (dtable_cells[0]));
|
dtable_cells = __alloca (dtablesize * sizeof (dtable_cells[0]));
|
||||||
dtable_cloexec = __alloca (dtablesize);
|
dtable_cloexec = __alloca (orig_dtablesize);
|
||||||
for (i = 0; i < dtablesize; ++i)
|
for (i = 0; i < dtablesize; ++i)
|
||||||
{
|
{
|
||||||
struct hurd_fd *const d = _hurd_dtable[i];
|
struct hurd_fd *const d = _hurd_dtable[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user