Searched refs:lock_path (Results 1 – 5 of 5) sorted by relevance
/external/libwebsockets/lib/misc/ |
D | daemonize.c | 33 static char *lock_path; variable 54 if (!lock_path) in child_handler() 59 fd = lws_open(lock_path, O_TRUNC | O_RDWR | O_CREAT, 0640); in child_handler() 63 lock_path, errno, strerror(errno)); in child_handler() 71 lock_path, errno, strerror(errno)); in child_handler() 87 if (lock_path) { in lws_daemon_closing() 88 unlink(lock_path); in lws_daemon_closing() 89 lws_free_set_NULL(lock_path); in lws_daemon_closing() 135 unlink(lock_path); in lws_daemonize() 140 lock_path = lws_malloc((unsigned int)n, "daemonize lock"); in lws_daemonize() [all …]
|
/external/rust/android-crates-io/crates/named-lock/src/ |
D | unix.rs | 15 pub(crate) fn create(lock_path: &Path) -> Result<RawNamedLock> { in create() 19 .open(&lock_path) in create() 20 .or_else(|_| OpenOptions::new().write(true).open(&lock_path)) in create()
|
/external/autotest/utils/frozen_chromite/lib/ |
D | cache.py | 217 lock_path = os.path.join(self._cache_dir, os.path.dirname(key_path), 219 return locking.FileLock(lock_path)
|
/external/bazelbuild-rules_rust/crate_universe/src/ |
D | metadata.rs | 78 let lock_path = manifest_dir.join("Cargo.lock"); in generate() localVariable 79 if !lock_path.exists() { in generate() 82 cargo_lock::Lockfile::load(lock_path)? in generate()
|
/external/pytorch/torch/_inductor/ |
D | codecache.py | 2465 lock_path = os.path.join(get_lock_dir(), key + ".lock") 2471 lock_path, 2491 with FileLock(lock_path, timeout=LOCK_TIMEOUT): 2504 def _worker_compile_cpp(lock_path, input_path, output_path, cmd): argument 2507 with FileLock(lock_path, timeout=LOCK_TIMEOUT):
|