From: <RGi...@a1...> - 2002-04-04 13:40:03
|
I did some further investigations and have come to the conclusion that = Darwin has a severe bug=3A When a spawned program exits=2C the master immediately gets EOF and all = characters that should have been queued inside the pty are lost=2E When the spawned program closes the pty before exiting=2C no characters = are lost=2E This leads me to the conclusion that the close-on-exit is broken on = Darwin=2E Workaround=3A add a =27sleep 1=27 to the spawn command=2C i=2Ee=2E spawn(= =22someprog=3B = sleep 1=22)=2E I don=27t know if this helps with Crypt=3A=3APGP=2C but it=27s a first st= ep=2E Roland -- RGiersig=40cpan=2Eorg ----- Urspr=FCngliche Nachricht ----- Von=3A RGiersig=40a1=2Enet Datum=3A Donnerstag=2C April 4=2C 2002 12=3A15 pm Betreff=3A Re=3A =5BExpectperl-discuss=5D spawn hanging on darwin =3E =3E Crypt=3A=3AGPG still failed=2C and when I went to re-run =3E =3E Expect=27s test suite=2C just to see what would happen=2C I got t= his=3A =3E =3E = =3E =3E =24 make test = =3E =3E PERL=5FDL=5FNONLAZY=3D1 /usr/bin/perl -Iblib/arch -Iblib/lib =3E =3E -I/System/Library/Perl/darwin -I/System/Library/Perl test=2Epl 1=2E= =2E36 =3E =3E = =3E =3E Basic tests=2E=2E=2E =3E =3E = =3E =3E ok 1 =3E =3E Use of uninitialized value in numeric eq (=3D=3D) at test=2Epl li= ne 37=2E =3E =3E not ok 2 =3E =3E =23 Test failed at test=2Epl line 22=2E =3E =3E Died at test=2Epl line 22=2E =3E =3E make=3A *** =5Btest=5Fdynamic=5D Error 255 =3E =3E = =3E =3E That=27s after make clean=3B perl Makefile=2EPL=3B make=3B of cou= rse=2E I =3E =3E repeated this failure on two systems=2C identically=2E =3E = =3E Interesting=2C I also encountered that error during my test runs=2C = =3E but it = =3E was only temporary=2C when I reran the test=2C it worked=2E If you c= an = =3E reproduce it consistently=2C please uncomment the = =3E =27=24Expect=3A=3AExp=5FInternal = =3E =3D 1=27 line in test=2Epl and rerun the test=2E It will probably va= nish = =3E then=2C = =3E just as Murphy predicts=2E =3E = =3E I will continue to investigate=2E=2E=2E =3E = =3E Roland =3E -- =3E RGiersig=40cpan=2Eorg =3E = =3E = =3E = =3E =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F =3E Expectperl-discuss mailing list =3E Expectperl-discuss=40lists=2Esourceforge=2Enet =3E https=3A//lists=2Esourceforge=2Enet/lists/listinfo/expectperl-discuss= =3E |