Paul Eggert
3fe59ed5ef
tests: port to sh variants that squirrel away file descriptors
...
OpenBSD /bin/sh, and some other sh variants, squirrel away file
descriptors before closing them. For example, for "cat 3<&-" they
first dup file descriptor 3 to a fd that is 10 or greater, then
close 3 (because if "cat" had been a builtin command like ":" then
they would have wanted to avoid the fork and restore the fd after
":" finished); and they treat ordinary (forking) commands the same
as builtin commands. This approach fails after "ulimit -n 10".
Work around this deficiency by closing the file descriptors before
invoking ulimit. Problem reported by Christian Weisgerber in
<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00041.html >;
solution suggested by Jilles Tjoelker in
<http://article.gmane.org/gmane.comp.shells.dash/415 >.
* tests/extrac11.at (scarce file descriptors): Close file
descriptors before invoking ulimit -n.
2010-10-27 20:25:56 -07:00
..
2010-08-19 15:50:07 -07:00
2009-03-07 16:30:44 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-10-27 14:07:46 +03:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2010-03-02 18:39:40 +02:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2007-06-27 13:30:12 +00:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-08-26 10:23:06 -07:00
2010-10-15 21:53:37 -07:00
2010-08-26 10:23:06 -07:00
2010-08-25 17:09:59 -07:00
2010-10-27 20:25:56 -07:00
2010-09-17 12:28:25 -07:00
2010-10-26 18:13:03 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 22:26:43 -07:00
2010-10-25 20:21:06 -07:00
2010-10-26 22:29:02 +03:00
2010-08-19 15:50:07 -07:00
2010-09-06 13:39:21 -07:00
2009-08-08 19:53:54 +03:00
2010-04-01 00:03:51 +03:00
2008-06-26 06:32:25 +00:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2009-08-07 14:52:55 +03:00
2009-08-13 16:45:49 +03:00
2010-08-19 15:50:07 -07:00
2008-07-31 07:12:50 +00:00
2007-06-27 13:30:12 +00:00
2010-01-24 15:52:22 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-24 08:18:37 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-26 10:23:06 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2008-06-26 06:32:25 +00:00
2008-06-26 06:32:25 +00:00
2007-06-27 13:30:12 +00:00
2010-10-27 14:07:46 +03:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2007-06-27 13:30:12 +00:00
2010-03-20 13:20:30 +02:00
2009-10-14 17:55:15 +03:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2009-05-25 10:18:59 +03:00
2010-08-19 15:50:07 -07:00
2010-03-20 13:20:30 +02:00
2010-10-15 21:53:37 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-07-11 22:57:17 +03:00
2007-06-27 13:30:12 +00:00
2010-07-11 22:57:17 +03:00
2007-06-27 13:30:12 +00:00
2007-10-04 07:16:39 +00:00
2010-10-27 14:07:46 +03:00
2009-08-08 19:53:54 +03:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-10-14 23:26:52 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-25 10:54:45 +03:00
2010-08-25 10:54:45 +03:00