about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-04-07 15:52:51 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-04-07 20:27:12 -0700
commit7da210907e4bf04a208adf186691cf516f1ef930 (patch)
tree11f227be6b59967d9732ac2d5b551b0a59c5e1b6 /src/libstd/path
parent9a33330caaaedb9eef447ae862e9b87e3aa9880f (diff)
downloadrust-7da210907e4bf04a208adf186691cf516f1ef930.tar.gz
rust-7da210907e4bf04a208adf186691cf516f1ef930.zip
native: Try hard to not malloc on a forked child
This appears to be causing the BSD bots to lock up when looking at the core
dumps I've managed to get. Dropping the `FileDesc` structure triggers the `Arc`
it's contained in to get cleaned up, invoking free(). This instead just closes
the file descriptor (the arc itself is never cleaned up).

I'm still not entirely sure why this is a problem because the pthreads runtime
should register hooks for fork() to prevent this sort of deadlock, but perhaps
that's only done on linux?
Diffstat (limited to 'src/libstd/path')
0 files changed, 0 insertions, 0 deletions