X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-openpty.c;h=f491e338ab6036c20aac92e8c007ad6aa9c3b077;hb=1d71dc7c690b5fe61e3e0c06303ffb59434bba4b;hp=4012e160fcc7e61cc2fedc744b3db00536822cfe;hpb=23737e3dd01ef6ac0ae9134300a4c66807ae00d2;p=gnulib.git diff --git a/tests/test-openpty.c b/tests/test-openpty.c index 4012e160f..f491e338a 100644 --- a/tests/test-openpty.c +++ b/tests/test-openpty.c @@ -1,5 +1,5 @@ /* Test of pty.h and openpty function. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -99,6 +99,10 @@ main () return 1; } } + + /* Close the master side before the slave side gets closed. + This is necessary on MacOS X 10.4.11. */ + close (master); } return 0;