comparison src/help.cc @ 2554:f7e3d23f0a8f

[project @ 1996-11-21 01:41:57 by jwe]
author jwe
date Thu, 21 Nov 1996 01:43:06 +0000
parents c0770352f562
children 25fbbe6074e9
comparison
equal deleted inserted replaced
2553:f57c52dcd5ed 2554:f7e3d23f0a8f
550 550
551 cmd_buf << ends; 551 cmd_buf << ends;
552 552
553 cmd_str = cmd_buf.str (); 553 cmd_str = cmd_buf.str ();
554 554
555 volatile sig_handler *old_sigint_handler; 555 volatile octave_interrupt_handler *old_interrupt_handler
556 old_sigint_handler = octave_set_signal_handler (SIGINT, SIG_IGN); 556 = octave_ignore_interrupts ();
557 557
558 status = system (cmd_str); 558 status = system (cmd_str);
559 559
560 octave_set_signal_handler (SIGINT, old_sigint_handler); 560 octave_set_interrupt_handler (old_interrupt_handler);
561 561
562 if ((status & 0xff) == 0) 562 if ((status & 0xff) == 0)
563 status = (signed char) ((status & 0xff00) >> 8); 563 status = (signed char) ((status & 0xff00) >> 8);
564 else 564 else
565 status = 127; 565 status = 127;