Bug 7138 - Command timeouts don't works
Summary: Command timeouts don't works
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: dip
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-11-19 13:04 UTC by Vsevolod Volkov
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-11-22 18:13:14 UTC
Embargoed:


Attachments (Terms of Use)
SIGALRM patch (196 bytes, patch)
1999-11-19 13:06 UTC, Vsevolod Volkov
no flags Details | Diff

Description Vsevolod Volkov 1999-11-19 13:04:43 UTC
Command timeouts don't works. For example:

# dip -t
DIP: Dialup IP Protocol Driver version 3.3.7o-uri (8 Feb 96)
Written by Fred N. van Kempen, MicroWalt Corporation.

DIP> port modem
DIP> wait TEST 1

This command is not finished after 1 second, because SIGALRM
does not interrupt read() function by default. Solution is to
use siginterrupt:

--- dip-3.3.7o/main.c.alrm      Mon Nov 15 22:05:59
1999
+++ dip-3.3.7o/main.c           Mon Nov 15 22:06:08
1999
@@ -398,2 +398,3
@@
   (void) signal(SIGQUIT,
catch);
+  (void) siginterrupt(SIGALRM,
1);

Comment 1 Vsevolod Volkov 1999-11-19 13:06:59 UTC
Created attachment 6 [details]
SIGALRM patch

Comment 2 Michael K. Johnson 1999-11-22 18:13:59 UTC
Thanks.  I've applied the patch and dip-3.3.7o-16 will be in the
next RawHide.


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