Skip to content

If any process calls R_CleanTempDir it is removed for all sessions #194

Description

@s-u

If R_CleanTempDir() is called in any of the worker processes, it will remove R's temporary directory for all sessions using the same temporary directory. By default, all R sessions will share the same temporary directory which can cause removal of tempdir() for existing sessions.

One way to force independent temporary directories is to remove tempdir() before forking and call tempdir(TRUE) after forking which creates a new temporary directory.

Note that R_CleanTempDir is called as part fo the cleanup of any R process, so this can happen in any cases where R initiates a shutdown including SIGPIPE handler or explicit user exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions