Skip to content

pidfile

Functions

  • mtime - Return pidfile modification time if the file exists.
  • read - Read a pid file.
  • remove - Remove a pid file if present.
  • write - Write a pid file.

Function

Return pidfile modification time if the file exists.

Returns filesystem metadata errors other than not-found.

fn mtime(path: &std::path::Path) -> crate::error::Result<Option<std::time::SystemTime>>

Function

Read a pid file.

Returns filesystem errors other than not-found.

fn read(path: &std::path::Path) -> crate::error::Result<Option<u32>>

Function

Remove a pid file if present.

Returns filesystem errors other than not-found.

fn remove(path: &std::path::Path) -> crate::error::Result<()>

Function

Write a pid file.

Returns filesystem errors.

fn write(path: &std::path::Path, pid: u32) -> crate::error::Result<()>