Opened 6 years ago

Closed 6 years ago

#12061 closed enhancement (implemented)

Support logging to named pipes

Reported by: nickm Owned by:
Priority: Medium Milestone: Tor: 0.2.6.x-final
Component: Core Tor/Tor Version:
Severity: Keywords: tor-relay 026-triaged-1
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Wouldn't it be nice to be able to say "Log debug /path/to/a/pipe" ?

See thread beginning at https://lists.torproject.org/pipermail/tor-dev/2014-April/006687.html , which eventually yielded some analysis, and even a possible patch.

[Making a ticket so this doesn't get lost]

Child Tickets

Change History (4)

comment:1 Changed 6 years ago by nickm

Status: newneeds_review

comment:2 Changed 6 years ago by nickm

Keywords: 026-triaged-1 added

comment:3 Changed 6 years ago by nickm

It needed some tweaking: the return value of lseek can be nonzero on success. Only a negative return value indicates an error.

comment:4 Changed 6 years ago by nickm

Resolution: implemented
Status: needs_reviewclosed
Type: defectenhancement

Cleaned and applied as a32913d5aa816cdc41edbabf9b606b83aea6c835.

Also bullet-proofed the function's return value (a cosmetic fix) in 7c61d10c6c09b32a4b8acd2553aa05c4fbc06611.

Note: See TracTickets for help on using tickets.