Displaying 2 results from an estimated 2 matches for "window_change_handler".
2001 May 21
1
ignoring SIGPIPE causing problems in pipes
...Sun May 20 22:55:35 2001
@@ -814,7 +814,7 @@
signal(SIGINT, signal_handler);
signal(SIGQUIT, signal_handler);
signal(SIGTERM, signal_handler);
- signal(SIGPIPE, SIG_IGN);
+ /* signal(SIGPIPE, SIG_IGN); */
if (have_pty)
signal(SIGWINCH, window_change_handler);
... and got the correct behavior:
[root at nilda test-restore]# ssh meili 'cat nildadump-boot.gz' | \
gunzip -c | restore xf - kernel.h
root at meili's password:
set owner/mode for '.'? [yn] n
Broken pipe
I noticed in the ChangeLog file that SIGPIPE and X forwarding...
2002 Nov 18
0
signals and ssh
...behaviour from rsh(1)
+ */
+ if (signal(SIGINT, SIG_IGN) != SIG_IGN)
+ signal(SIGINT, signal_handler);
+ if (signal(SIGQUIT, SIG_IGN) != SIG_IGN)
+ signal(SIGQUIT, signal_handler);
+ if (signal(SIGTERM, SIG_IGN) != SIG_IGN)
+ signal(SIGTERM, signal_handler);
if (have_pty)
signal(SIGWINCH, window_change_handler);