Skip to content
Snippets Groups Projects
  • Eric Vidal's avatar
    69f24c1e
    pass through temporary directory. · 69f24c1e
    Eric Vidal authored
    Parse the service and write the result in a temporary directory. When the write process
    is finished the directory is copied to the original service directory overwritten a
    same file. The symlink /var/lib/66/system/.resolve/service/<name> is made at the complete
    end of the process. So we can clean the mess removing the temporary directory and
    avoid to change the original service directory before the end of the process. The state of
    system should be clean event on crash of the parse process
    69f24c1e
    History
    pass through temporary directory.
    Eric Vidal authored
    Parse the service and write the result in a temporary directory. When the write process
    is finished the directory is copied to the original service directory overwritten a
    same file. The symlink /var/lib/66/system/.resolve/service/<name> is made at the complete
    end of the process. So we can clean the mess removing the temporary directory and
    avoid to change the original service directory before the end of the process. The state of
    system should be clean event on crash of the parse process
write_classic.c 1.95 KiB