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

ioprofiler/ioapps aborts with Fd 964 is already present in parent fds array... #7

Closed
GoogleCodeExporter opened this issue Mar 29, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

failing part of strace 
(/home/keruom/fzu/acat2013/lysak.cache.on.new.files/strace.dcap.server.35.head):

16435 1368689283.931320 read(964, ""..., 4) = 4 <0.000047>
16435 1368689283.931444 write(964, ""..., 16) = 16 <0.000046>
16435 1368689283.931566 dup2(210, 964) = 964 <0.000039>
16435 1368689283.931651 close(964) = 0 <0.000038>

What's interesting is that the fd 964 was already opened. Apparently, this is 
ok behavior (man 2 dup2):

       dup2() makes newfd be the copy of oldfd, closing newfd first if necessary, but note the following:

       *  If oldfd is not a valid file descriptor, then the call fails, and newfd is not closed.

Jiri Horky

Original issue reported on code.google.com by jiri.ho...@gmail.com on 16 May 2013 at 8:46

@GoogleCodeExporter
Copy link
Author

Fixed in revision 170.

Original comment by jiri.ho...@gmail.com on 29 Oct 2013 at 1:24

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Original comment by jiri.ho...@gmail.com on 29 Oct 2013 at 1:24

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

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