Blame SOURCES/telnet-rh825946.patch
|
|
fbcb50 |
diff -up netkit-telnet-0.17/telnetd/sys_term.c.rh825946 netkit-telnet-0.17/telnetd/sys_term.c
|
|
|
fbcb50 |
--- netkit-telnet-0.17/telnetd/sys_term.c.rh825946 1999-12-17 15:28:47.000000000 +0100
|
|
|
fbcb50 |
+++ netkit-telnet-0.17/telnetd/sys_term.c 2012-06-14 14:05:30.538342755 +0200
|
|
|
fbcb50 |
@@ -723,6 +723,9 @@ void cleanup(int sig) {
|
|
|
fbcb50 |
char *p;
|
|
|
fbcb50 |
(void)sig;
|
|
|
fbcb50 |
|
|
|
fbcb50 |
+ /* to avoid a race for wtmp lock */
|
|
|
fbcb50 |
+ signal(SIGCHLD, SIG_IGN);
|
|
|
fbcb50 |
+
|
|
|
fbcb50 |
p = line + sizeof("/dev/") - 1;
|
|
|
fbcb50 |
if (logout(p)) logwtmp(p, "", "");
|
|
|
fbcb50 |
#ifdef PARANOID_TTYS
|
|
|
fbcb50 |
diff -up netkit-telnet-0.17/telnetd/telnetd.c.rh825946 netkit-telnet-0.17/telnetd/telnetd.c
|
|
|
fbcb50 |
--- netkit-telnet-0.17/telnetd/telnetd.c.rh825946 2012-06-14 14:04:42.000000000 +0200
|
|
|
fbcb50 |
+++ netkit-telnet-0.17/telnetd/telnetd.c 2012-06-14 14:06:01.547291404 +0200
|
|
|
fbcb50 |
@@ -1147,8 +1147,6 @@ void telnet(int f, int p)
|
|
|
fbcb50 |
if (FD_ISSET(p, &obits) && (pfrontp - pbackp) > 0)
|
|
|
fbcb50 |
ptyflush();
|
|
|
fbcb50 |
}
|
|
|
fbcb50 |
- /* to avoid a race for wtmp lock */
|
|
|
fbcb50 |
- signal(SIGCHLD, SIG_IGN);
|
|
|
fbcb50 |
cleanup(0);
|
|
|
fbcb50 |
} /* end of telnet */
|
|
|
fbcb50 |
|