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

Seeking is not allowed in streams #67

Open
samoht opened this issue Apr 7, 2016 · 0 comments
Open

Seeking is not allowed in streams #67

samoht opened this issue Apr 7, 2016 · 0 comments

Comments

@samoht
Copy link
Member

samoht commented Apr 7, 2016

Seems that terminal likes to seek on stdout of files put into background (not sure why, need to investigate):

+321731243us fs9p       [DEBUG] S tag 1 Read(len(data): 8)
+321731281us fs9p       [DEBUG] S tag 2 Read(len(data): 8)
+321762447us fs9p       [DEBUG] C ((tag (1))
                                    (payload
                                     (Read
                                      ((fid 9) (offset 16) (count 8168)))))
+321762511us vfs        [DEBUG] offset:16 current-offset:16
+321762530us fs9p       [DEBUG] S tag 1 Read(len(data): 0)
+321762808us fs9p       [DEBUG] C ((tag (2))
                                    (payload
                                     (Read
                                      ((fid 10) (offset 8) (count 8168)))))
+321762977us vfs        [DEBUG] offset:8 count:16
+321763229us fs9p       [DEBUG] S ((tag (2))
                                    (payload
                                     (Err
                                      ((ename "Attempt to seek in stream")
                                       (errno ())))))
+321763377us fs9p       [DEBUG] C ((tag (1))
                                    (payload
                                     (Read
                                      ((fid 9) (offset 16) (count 8168)))))
+321763559us vfs        [DEBUG] offset:16 current-offset:16
+321763578us vgithub    [DEBUG] wait
+321803168us fs9p       [DEBUG] C ((tag (2))
                                    (payload
                                     (Read
                                      ((fid 10) (offset 8) (count 8168)))))
+321803252us vfs        [DEBUG] offset:8 current-offset:16
+321803278us fs9p       [DEBUG] S ((tag (2))
                                    (payload
                                     (Err
                                      ((ename "Attempt to seek in stream")
                                       (errno ())))))
+321803514us fs9p       [DEBUG] C ((tag (2))
                                    (payload
                                     (Read
                                      ((fid 10) (offset 8) (count 8168)))))
+321803670us vfs        [DEBUG] offset:8 current-offset:16
+321803702us fs9p       [DEBUG] S ((tag (2))
                                    (payload
                                     (Err
                                      ((ename "Attempt to seek in stream")
                                       (errno ())))))
+321803967us fs9p       [DEBUG] C ((tag (2))
                                    (payload
                                     (Read
                                      ((fid 10) (offset 8) (count 8168)))))
+321804020us vfs        [DEBUG] offset:8 current-offset:16
+321804039us fs9p       [DEBUG] S ((tag (2))
                                    (payload
                                     (Err
                                      ((ename "Attempt to seek in stream")
                                       (errno ())))))
+321804771us fs9p       [DEBUG] C ((tag (2)) (payload (Clunk ((fid 10)))))
+321804959us fs9p       [DEBUG] S ((tag (2)) (payload (Clunk ())))

To repro:

$ cat /db/github.com/samoht/test/pr/8/updates
< PRESS CTL-G >
$ bg
$ echo pending db/github.com/samoht/test/pr/8/state
pending
pending
cat: read error: No error information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant