Lines Matching refs:lockfile
150 create_lockfile(int display, char *lockfile, size_t lsize) in create_lockfile() argument
158 snprintf(lockfile, lsize, "/tmp/.X%d-lock", display); in create_lockfile()
159 fd = open(lockfile, O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0444); in create_lockfile()
161 fd = open(lockfile, O_CLOEXEC | O_RDONLY); in create_lockfile()
164 lockfile, strerror(errno)); in create_lockfile()
177 lockfile); in create_lockfile()
185 weston_log("unlinking stale lock file %s\n", lockfile); in create_lockfile()
187 if (unlink(lockfile)) in create_lockfile()
201 lockfile, strerror(errno)); in create_lockfile()
211 unlink(lockfile); in create_lockfile()
258 char lockfile[256], display_name[8]; in weston_xwayland_listen() local
264 if (create_lockfile(wxs->display, lockfile, sizeof lockfile) < 0) { in weston_xwayland_listen()
279 unlink(lockfile); in weston_xwayland_listen()
285 unlink(lockfile); in weston_xwayland_listen()