Searched refs:fd_pidfile (Results 1 - 1 of 1) sorted by relevance

/external/e2fsprogs/misc/
H A Duuidd.c240 int fd_pidfile, ret; local
242 fd_pidfile = open(pidfile_path, O_CREAT | O_RDWR, 0664);
243 if (fd_pidfile < 0) {
258 while (fcntl(fd_pidfile, F_SETLKW, &fl) < 0) {
330 if (ftruncate(fd_pidfile, 0)) {} /* Silence warn_unused_result */
331 write_all(fd_pidfile, reply_buf, strlen(reply_buf));
332 if (fd_pidfile > 1)
333 close(fd_pidfile); /* Unlock the pid file */

Completed in 76 milliseconds