diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-11-11 18:55:24 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-11-11 18:55:24 +0100 |
commit | 58bb655acb3afc7ed13354eda307019604f77137 (patch) | |
tree | 99986289702bb6471121206611f616558e9523b2 /sysdeps/mach/hurd | |
parent | 88b26b7e9126bc62793e3a231da94546dffd6214 (diff) | |
download | glibc-58bb655acb3afc7ed13354eda307019604f77137.tar.gz glibc-58bb655acb3afc7ed13354eda307019604f77137.tar.xz glibc-58bb655acb3afc7ed13354eda307019604f77137.zip |
hurd: Document dtable_cloexec size convention.
* sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead of dtablesize for allocating dtable_cloexec.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r-- | sysdeps/mach/hurd/spawni.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |