Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 175267

Summary: dispatcher process has non-blocking stdin
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: auditAssignee: Steve Grubb <sgrubb>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-15 15:56:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 150221    

Description Tim Waugh 2005-12-08 12:00:42 UTC
Description of problem:
The dispatcher process is spawned with a stdin file descriptor that is
non-blocking.  It would probably be better if it were blocking.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. See bug #173283.
Actual results:
Shell script will busy-loop.

Expected results:
No busy-looping, read() call waits until data is available.

Comment 1 Steve Grubb 2005-12-08 23:42:23 UTC
This is by design since dispatching events is secondary to logging to disk. The
audit daemon is in a race with the OS to dequeue events before the backlog
overflows. Because of this, the dispatcher comm is done with non-blocking