[ 
https://issues.apache.org/jira/browse/MESOS-3798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14971718#comment-14971718
 ] 

Jojy Varghese commented on MESOS-3798:
--------------------------------------

Preliminary investigation shows that the junk characters are written after the  
os::nonblock(fd) in the write function.

> io::write(fd, const string&) api writes junk sometimes
> ------------------------------------------------------
>
>                 Key: MESOS-3798
>                 URL: https://issues.apache.org/jira/browse/MESOS-3798
>             Project: Mesos
>          Issue Type: Bug
>          Components: libprocess
>         Environment: osx
>            Reporter: Jojy Varghese
>            Assignee: Jojy Varghese
>
> This was noticed during registry client test( please see  MESOS-3773).A brief 
> summary :
> 1. open a file with flags "  O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC" and 
> mode    "S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)", 
> 2. Call write(fd, string).
> This causes junk to be written every once in a while to the beginning of the 
> file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to