bugGPSD - Bugs: bug #45270, serial driver does not work...

 
 

bug #45270: serial driver does not work properly on pipes

Submitter:  Simon Arlott <s_a>
Submitted:  Sat 06 Jun 2015 11:02:32 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 06 Jun 2015 11:02:32 PM UTC, original submission:  

When using a pipe with the serial driver (e.g. stdin from another process) to provide NMEA data, the fd is set to blocking mode and gpsd_poll() gets stuck in a loop calling get_packet() because read() always waits for more data.

I have to remove the "Switch back to blocking I/O now that CLOCAL is set" code from serial.c to get it to work. The driver should detect if the fd is a pipe and keep it set to non-blocking.

Simon Arlott <s_a>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Updated the item)
  • -email is unavailable- added by s_a (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-07 esr Open/ClosedOpen Closed
    2016-01-05 esr StatusNone Fixed
        Assigned toNone esr

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code