Jilles Tjoelker 09683f46b9 sh: Check if dup2 for redirection from/to a file succeeds.
A failure (e.g. caused by ulimit -n being set very low) is a redirection
error.

Example:
  ulimit -n 9; exec 9<.
2010-12-31 18:20:17 +00:00
..
2009-10-15 18:17:29 +00:00
2010-06-02 09:34:41 +00:00
2009-01-30 16:23:57 +00:00
2009-06-23 23:30:56 +00:00
2006-12-18 15:45:01 +00:00
2010-03-04 16:08:01 +00:00
2009-06-23 23:30:56 +00:00
2010-12-21 22:47:34 +00:00
2010-07-31 21:09:49 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2010-07-12 01:58:46 +00:00
2010-10-31 19:16:54 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2010-07-27 17:33:02 +00:00
2009-10-15 18:17:29 +00:00
2010-09-13 01:29:51 +00:00