[BusyBox 0001079]: telnetd quits on SIGPIPE
bugs at busybox.net
bugs at busybox.net
Wed Nov 22 21:12:08 UTC 2006
The following issue requires your FEEDBACK.
======================================================================
http://busybox.net/bugs/view.php?id=1079
======================================================================
Reported By: jmunsin
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1079
Category: Networking Support
Reproducibility: random
Severity: crash
Priority: normal
Status: feedback
======================================================================
Date Submitted: 11-01-2006 01:42 PST
Last Modified: 11-22-2006 13:12 PST
======================================================================
Summary: telnetd quits on SIGPIPE
Description:
The line
w = write(ts->sockfd, ts->buf2 + ts->wridx2, maxlen);
in telnetd.c may cause a SIGPIPE. The default handler for
SIGPIPE is to terminate => telnetd quits. This is wrong,
at least if you are using telnetd in stand alone mode.
Reproducing this is a bit tricky (timing/load dependant?),
but my scripts can reproduce it after connecting 200-300 times.
A quick fix is to run signal(SIGPIPE, SIG_IGN);, but perhaps there
is a better way to handle this.
======================================================================
----------------------------------------------------------------------
vda - 11-22-06 13:12
----------------------------------------------------------------------
Added signal(SIGPIPE, SIG_IGN) among many other changes (standalone+inetd
support, fixed IPv6 and IPv6+IPv4 support). Can you test current svn
version?
Issue History
Date Modified Username Field Change
======================================================================
11-01-06 01:42 jmunsin New Issue
11-01-06 01:42 jmunsin Status new => assigned
11-01-06 01:42 jmunsin Assigned To => BusyBox
11-22-06 13:12 vda Note Added: 0001768
11-22-06 13:12 vda Status assigned => feedback
======================================================================
More information about the busybox-cvs
mailing list