Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log: lines are split #1301

Closed
rogpeppe opened this issue Nov 26, 2010 · 2 comments
Closed

log: lines are split #1301

rogpeppe opened this issue Nov 26, 2010 · 2 comments

Comments

@rogpeppe
Copy link
Contributor

the following program splits lines inappropriately (see attached file
containing sample output).

6g darwin 71a9509287b2+ tip

package main
import "log"
var c = make(chan bool)
func main() {
    go printer("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
    go printer("yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy")
    <-c
    <-c
}

func printer(s string) {
    for i := 0; i < 10000; i++ {
        log.Print(s)
    }
    c <- true
}

Attachments:

  1. x.out (1320004 bytes)
@rogpeppe
Copy link
Contributor Author

Comment 1:

dupe. please delete.

@alexbrainman
Copy link
Member

Comment 2:

Status changed to Duplicate.

Merged into issue #1302.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants