commit | 02c0891f7e133a13f6945811d8a2bea6307c86cb | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Mon Jun 01 20:18:32 2015 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Mon Jun 01 21:33:47 2015 -0700 |
tree | 115a41333b5da80ea31bb759b12b41653f37108a | |
parent | 3af790a5d970735f1447be0811aee2deb131149c [diff] |
Use dup2() to make message queue tests less flaky. We're trying to test situations where a file descriptor number gets reused after a file has been closed. For that, it's better to use dup2() to explicitly simulate this situation rather than relying on timing and luck. Change-Id: If86cdbe4246a7a1b9eeddd1c32a76559c4cf09c6