{"action":"created","issue":{"url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/1964","repository_url":"https://api.github.com/repos/cooperative-computing-lab/cctools","labels_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/1964/labels{/name}","comments_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/1964/comments","events_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/1964/events","html_url":"https://github.com/cooperative-computing-lab/cctools/issues/1964","id":357058312,"node_id":"MDU6SXNzdWUzNTcwNTgzMTI=","number":1964,"title":"Fifo not blocking on write with  parrot_run","user":{"login":"poquirion","id":11478663,"node_id":"MDQ6VXNlcjExNDc4NjYz","avatar_url":"https://avatars2.githubusercontent.com/u/11478663?v=4","gravatar_id":"","url":"https://api.github.com/users/poquirion","html_url":"https://github.com/poquirion","followers_url":"https://api.github.com/users/poquirion/followers","following_url":"https://api.github.com/users/poquirion/following{/other_user}","gists_url":"https://api.github.com/users/poquirion/gists{/gist_id}","starred_url":"https://api.github.com/users/poquirion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poquirion/subscriptions","organizations_url":"https://api.github.com/users/poquirion/orgs","repos_url":"https://api.github.com/users/poquirion/repos","events_url":"https://api.github.com/users/poquirion/events{/privacy}","received_events_url":"https://api.github.com/users/poquirion/received_events","type":"User","site_admin":false},"labels":[{"id":42511968,"node_id":"MDU6TGFiZWw0MjUxMTk2OA==","url":"https://api.github.com/repos/cooperative-computing-lab/cctools/labels/Parrot","name":"Parrot","color":"fbca04","default":false},{"id":31803945,"node_id":"MDU6TGFiZWwzMTgwMzk0NQ==","url":"https://api.github.com/repos/cooperative-computing-lab/cctools/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"trshaffer","id":6613013,"node_id":"MDQ6VXNlcjY2MTMwMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6613013?v=4","gravatar_id":"","url":"https://api.github.com/users/trshaffer","html_url":"https://github.com/trshaffer","followers_url":"https://api.github.com/users/trshaffer/followers","following_url":"https://api.github.com/users/trshaffer/following{/other_user}","gists_url":"https://api.github.com/users/trshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/trshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trshaffer/subscriptions","organizations_url":"https://api.github.com/users/trshaffer/orgs","repos_url":"https://api.github.com/users/trshaffer/repos","events_url":"https://api.github.com/users/trshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/trshaffer/received_events","type":"User","site_admin":false},"assignees":[{"login":"trshaffer","id":6613013,"node_id":"MDQ6VXNlcjY2MTMwMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/6613013?v=4","gravatar_id":"","url":"https://api.github.com/users/trshaffer","html_url":"https://github.com/trshaffer","followers_url":"https://api.github.com/users/trshaffer/followers","following_url":"https://api.github.com/users/trshaffer/following{/other_user}","gists_url":"https://api.github.com/users/trshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/trshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trshaffer/subscriptions","organizations_url":"https://api.github.com/users/trshaffer/orgs","repos_url":"https://api.github.com/users/trshaffer/repos","events_url":"https://api.github.com/users/trshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/trshaffer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-09-05T04:08:21Z","updated_at":"2018-09-13T04:16:28Z","closed_at":"2018-09-06T17:43:10Z","author_association":"NONE","body":"I have a program that writes to a fifo and blocks until another one reads it.\r\n\r\nThe fifo is in `/tmp` and I use parrot_run to access some file in `/cvmfs`\r\n\r\nHere is what is happening when I am not using parrot_run (expected behaviour)\r\n```\r\n$ mkfifo /tmp/toto\r\n$ echo 33 > /tmp/toto\r\n# blocking, waiting for a process to read /tmp/toto\r\n```\r\nWhen I use parrot_run in a one liner (again, expected behaviour)\r\n```\r\n$ parrot_run echo 33 > /tmp/toto\r\n# blocking, waiting for a process to read /tmp/toto\r\n```\r\n\r\nMy problem is when I start a bash session with parrot_run, \r\n\r\n```\r\n$ parrot_run bash\r\n$ echo 33 > /tmp/toto\r\nbash: /tmp/toto: No such device or address\r\n# Hey what is going on !\r\n$\r\n```\r\nIn the last case, if I read from `/tmp/toto` with another process before echoing, I do not get the error.\r\n\r\nThis in an error typically thrown when the  O_NONBLOCK option is used with open() https://www.tldp.org/LDP/lpg/node19.html\r\n\r\nNot sure if it is expected, but  it crashes my code! (actually it freezes it since the reader is blocking on `/tmp/toto` forever, waiting for a process to write in it.)\r\n\r\nI have have seen the behavior with cctools-6.2.8-x86_64-redhat7 and cctools-7.0.4-x86_64-redhat7.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/comments/420878080","html_url":"https://github.com/cooperative-computing-lab/cctools/issues/1964#issuecomment-420878080","issue_url":"https://api.github.com/repos/cooperative-computing-lab/cctools/issues/1964","id":420878080,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDg3ODA4MA==","user":{"login":"poquirion","id":11478663,"node_id":"MDQ6VXNlcjExNDc4NjYz","avatar_url":"https://avatars2.githubusercontent.com/u/11478663?v=4","gravatar_id":"","url":"https://api.github.com/users/poquirion","html_url":"https://github.com/poquirion","followers_url":"https://api.github.com/users/poquirion/followers","following_url":"https://api.github.com/users/poquirion/following{/other_user}","gists_url":"https://api.github.com/users/poquirion/gists{/gist_id}","starred_url":"https://api.github.com/users/poquirion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poquirion/subscriptions","organizations_url":"https://api.github.com/users/poquirion/orgs","repos_url":"https://api.github.com/users/poquirion/repos","events_url":"https://api.github.com/users/poquirion/events{/privacy}","received_events_url":"https://api.github.com/users/poquirion/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T04:16:28Z","updated_at":"2018-09-13T04:16:28Z","author_association":"NONE","body":"Mmm, it does solve the bug, but It seems that the software is still hindered by the parrot... I will need to dig a bit more before any new release can help me. "}}
{"actor":{"display_login":"poquirion"}}