Hello John, It's seems that I can have the same problem :
(-ksh) sig.c:1181: EXCEPTION_ACCESS_VIOLATION cmd=-ksh state=CHILDWAIT exitcode=1 count=0 pc=kernel32.dll+9823,kernel32:0x7c809823:InterlockedDecrement,oleaut32:0x770e15a8:Ordinal407,ntdll:0x7c91118a:LdrInitializeThunk,ntdll:0x7c923a43:LdrShutdownThread,kernel32:0x7c80c136:ExitThread,kernel32:0x7c87658b:GetConsoleCharType Regards, Yves yves crespin t. +33.(0)6.86.42.86.81 LinkedIn yvescrespin 2010/11/22 <[email protected]> > > Thanks, Yves! I suspect that Windows is different enough in it's handling of > signals that it may be taking a different code path. Can anyone try this on > a Linux or Unix server? > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] > > On Behalf Of Yves Crespin > > Sent: Monday, November 22, 2010 3:13 PM > > To: Wiersba, John (Hlthcr&Science) > > Cc: [email protected] > > Subject: Re: [ast-developers] Pipeline+trap causes stty error > > > > Hello John, > > > > With version "Version JM 93u 2010-11-12" on Windows, it's fine. > > > > I have notice a problem, on previous release with Ctrl-C on a > > shell script. > > > > Regards, > > > > Yves > > > > 2010/11/22 <[email protected]> > > > > > > Is anyone able to reproduce the stty error mentioned below? > > When I run > > > it I get: > > > > > > $ test_program > > > prompt: <ENTER CTRL-C HERE> > > > $ stty: setattr: I/O error > > > > > > Can anyone offer a suggestion on how to write this to avoid the stty > > > error? I do not get this error when running the script > > under bash, so I > > > think it must be something specific to ksh. > > > > > > -- John > > > > > > > -----Original Message----- > > > > From: [email protected] > > > > [mailto:[email protected]] On Behalf Of > > > > Wiersba, John (Hlthcr&Science) > > > > Sent: Friday, November 19, 2010 12:38 PM > > > > To: [email protected] > > > > Subject: [ast-developers] Pipeline+trap causes stty error > > > > > > > > Running the following code and typing cntl-c at the prompt > > > > results in an > > > > I/O error from stty on Linux, AIX, Solaris. The version > > on Linux is > > > > Version AJM 93t+ 2010-02-02; others are ksh88. Bash does > > not cause an > > > > stty error. > > > > > > > > How can I write similar code (with a pipeline) to avoid > > this issue? > > > > > > > > Thanks! > > > > -- John > > > > > > > > #!/bin/ksh > > > > { > > > > trap 'stty echo; exit 1' INT > > > > stty -echo > > > > printf "prompt: " > > > > read pw > > > > stty echo > > > > trap - INT > > > > echo "<$pw>" >&2 > > > > } | cat > > > > > > > > _______________________________________________ > > > > ast-developers mailing list > > > > [email protected] > > > > https://mailman.research.att.com/mailman/listinfo/ast-developers > > > > > > > > > > > > > > _______________________________________________ > > > ast-developers mailing list > > > [email protected] > > > https://mailman.research.att.com/mailman/listinfo/ast-developers > > > > > _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
