-
- Downloads
pass through temporary directory.
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
Showing
- src/include/66/parse.h 1 addition, 0 deletionssrc/include/66/parse.h
- src/include/66/sanitize.h 4 additions, 1 deletionsrc/include/66/sanitize.h
- src/include/66/write.h 11 additions, 8 deletionssrc/include/66/write.h
- src/lib66/parse/parse_service.c 138 additions, 18 deletionssrc/lib66/parse/parse_service.c
- src/lib66/sanitize/sanitize_write.c 8 additions, 92 deletionssrc/lib66/sanitize/sanitize_write.c
- src/lib66/write/deps-lib/deps 1 addition, 0 deletionssrc/lib66/write/deps-lib/deps
- src/lib66/write/write_classic.c 26 additions, 8 deletionssrc/lib66/write/write_classic.c
- src/lib66/write/write_common.c 84 additions, 28 deletionssrc/lib66/write/write_common.c
- src/lib66/write/write_environ.c 6 additions, 4 deletionssrc/lib66/write/write_environ.c
- src/lib66/write/write_execute_scripts.c 5 additions, 3 deletionssrc/lib66/write/write_execute_scripts.c
- src/lib66/write/write_execute_scripts_user.c 0 additions, 58 deletionssrc/lib66/write/write_execute_scripts_user.c
- src/lib66/write/write_logger.c 40 additions, 15 deletionssrc/lib66/write/write_logger.c
- src/lib66/write/write_oneshot.c 26 additions, 9 deletionssrc/lib66/write/write_oneshot.c
- src/lib66/write/write_service.c 9 additions, 7 deletionssrc/lib66/write/write_service.c
- src/lib66/write/write_uint.c 4 additions, 2 deletionssrc/lib66/write/write_uint.c
Loading
Please register or sign in to comment