Bug 974622 - expect gives error "write() failed to write anything - will sleep(1) and retry..." upon disconnection
Summary: expect gives error "write() failed to write anything - will sleep(1) and retr...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: expect
Version: 5.9
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Vitezslav Crhonek
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1002709
TreeView+ depends on / blocked
 
Reported: 2013-06-14 16:29 UTC by Ken Booth
Modified: 2018-12-03 19:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-07 01:47:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ken Booth 2013-06-14 16:29:41 UTC
Description of problem:
  When disconnecting a session, expect reports the following error
write() failed to write anything - will sleep(1) and retry...
it then waits 1 second and exits continues normally.

Version-Release number of selected component (if applicable):
RHEL 5 only - expect 5.43

How reproducible:
100%

Steps to Reproduce:
1. Use the following expect script

#!/usr/bin/expect -d 

spawn telnet <IP address>
expect {
	-re "login:" {
	send "<dummy login>\r"
	}
}
expect {
	-re "Password:" {
	send "<dummy passwd>\r"
	}
}
interact

2. once expect has given you an interactive prompt on the remote server type "exit"

Actual results:
write() failed to write anything - will sleep(1) and retry...
then 1 second later expect exits

Expected results:
expect exits immediately

Additional info:
Fixed in expect 5.45
Fixed in RHEL6 all versions

Comment 1 RHEL Program Management 2013-09-13 11:48:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Andrius Benokraitis 2013-10-07 01:47:52 UTC
This Bugzilla has been reviewed by Red Hat and is not planned on being addressed in Red Hat Enterprise Linux 5, and therefore will be closed. If this bug is critical to production systems, please contact your Red Hat support representative and provide sufficient business justification.


Note You need to log in before you can comment on or make changes to this bug.