]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If a timeout is specified, make sure that rcmd() completes within
authoriedowse <iedowse@FreeBSD.org>
Tue, 13 Aug 2002 16:25:38 +0000 (16:25 +0000)
committeriedowse <iedowse@FreeBSD.org>
Tue, 13 Aug 2002 16:25:38 +0000 (16:25 +0000)
commit9d7acfc814d93b5d8306c71ff7704336fd17e1c4
tree5a8f09f83ac309d0020b8d2beb0e4bd2c8e9c73f
parentb4479e513a3c6582acf226b259844fa409fd6e31
If a timeout is specified, make sure that rcmd() completes within
the specified time. Previously, rsh could potentially hang indefinitely
at this point even when a timeout was set, for example if the server
accepts the connection and then never sends any reply.

PR: bin/20042
Submitted by: Keith White <Keith.White@site.uottawa.ca>
MFC after: 1 week
usr.bin/rsh/rsh.c