Task: Creating a Linux Daemon for Filesystem Monitoring
Task: Creating a Linux Daemon for Filesystem Monitoring: a task in Terminal-Lego-15k (Harbor dataset). The daemon should be a "proper" daemon that: - Forks and detaches from the parent process - Creates a new session (setsid) - Changes working directory to root or a safe location - Closes standard…
The task
The daemon should be a "proper" daemon that: - Forks and detaches from the parent process - Creates a new session (setsid) - Changes working directory to root or a safe location - Closes standard file descriptors - Handles SIGTERM for graceful shutdown
Part of PrimeIntellect/Terminal-Lego-15k.