Bug 44361

Summary: genericups doesn't open device O_NONBLOCK
Product: [Retired] Red Hat Linux Reporter: j. alan eldridge <alane>
Component: nutAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-13 01:03:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
open() non-blocking in open_serial_simple() none

Description j. alan eldridge 2001-06-13 01:02:18 UTC
Description of Problem:

The genericups driver app is for "Stupid" UPSs that use "simple 
signalling". They don't transmit data, they just raise/lower control 
signals.

Opening the file (e.g., ttyS1) in blocking mode will block (and fail with 
a timeout) because the right signals aren't present.

The attached patch is against 0.45.0 but should work for 0.44.x as well.

Comment 1 j. alan eldridge 2001-06-13 01:03:09 UTC
Created attachment 20925 [details]
open() non-blocking in open_serial_simple()

Comment 2 Ngo Than 2001-06-13 08:52:53 UTC
The new nut-0.45-1 in rawhide has this patch. Thanks