[BusyBox 0001079]: telnetd quits on SIGPIPE
bugs at busybox.net
bugs at busybox.net
Wed Nov 1 01:42:35 PST 2006
The following issue has been SUBMITTED.
======================================================================
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: assigned
======================================================================
Date Submitted: 11-01-2006 01:42 PST
Last Modified: 11-01-2006 01:42 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.
======================================================================
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
======================================================================
More information about the busybox-cvs
mailing list