Skip to content

AIX: process_substition: unlink temporary files immediately after opening #2

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

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

aixtools
Copy link
Owner

@aixtools aixtools commented Mar 17, 2021

Fixes: #1

There is a complex process within bash to track fifo entries - but this still does not take care of deleting the fifo aka p device files created in /tmp to manage the shell redirect known as process substitution.

This patch - limited to AIX atm (only platform tested) takes the historical approach of managing temporary files that are not intended to survive a process - ie.e, open() and then unlink().

This works on POSIX systems, in any case, as files are supposed to remain effective as long as the inode exists. And inodes exist when they are open or when the link-count is greater than zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant