X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-openpty.c;h=41caaf2591da293e9f072a573adf581eb614067f;hb=90735e334e89048c011e5f01eca366f1118bb640;hp=4012e160fcc7e61cc2fedc744b3db00536822cfe;hpb=fb480c11cabf8b1b2f3601a6930037f992b7ceed;p=gnulib.git diff --git a/tests/test-openpty.c b/tests/test-openpty.c index 4012e160f..41caaf259 100644 --- a/tests/test-openpty.c +++ b/tests/test-openpty.c @@ -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;