FreeBSD Bugzilla – Attachment 9709 Details for
Bug 19773
[patch] telnet(1) infinite loop depending on how fds are closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 667 bytes, created by
joelh
on 2000-07-08 03:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
joelh
Created:
2000-07-08 03:00:01 UTC
Size:
667 bytes
patch
obsolete
>--- sys_bsd.c.orig Fri Jul 7 21:35:57 2000 >+++ sys_bsd.c Fri Jul 7 21:50:59 2000 >@@ -941,9 +941,17 @@ > void > sys_telnet_init() > { >+ struct sigaction act; > (void) signal(SIGINT, intr); > (void) signal(SIGQUIT, intr2); >- (void) signal(SIGPIPE, deadpeer); >+ /* We only want deadpeer to be called once, 'cause if there's a broken >+ * pipe on stdout, we can't handle a SIGPIPE while reporting the >+ * dropped connection. >+ */ >+ act.sa_handler = deadpeer; >+ sigemptyset(&act.sa_mask); >+ act.sa_flags = SA_RESETHAND; >+ (void) sigaction(SIGPIPE, &act, NULL); > #ifdef SIGWINCH > (void) signal(SIGWINCH, sendwin); > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19773
: 9709