Interrupting programs that are doing output to terminals.

thomas at utah-gr.UUCP thomas at utah-gr.UUCP
Wed Jul 27 16:28:42 AEST 1983


A fix to your problem (write says it has written N characters, but has
actually written less than N because of an interrupt) is to put a
sighold(SIGINT)/sigrelse(SIGINT) around the write.  This is admittedly
gross, but it does work.  If you are using stdio, you need to put it
inside flsbuf().

=Spencer



More information about the Comp.unix.wizards mailing list