- A program works with files and the network through system calls;
straceprints each one with its result, and a failure is-1plus the error name. - The cause of a silent failure is the last call with
-1beforeexit_group;ENOENTat the start of a trace is a normal search along paths. sudo strace -p <PID>shows which call a process is waiting in;/proc/<PID>/fdturns a descriptor number into a file name.lsof <file>finds the process that holds a file and its lock.- nightsync from the start of the lesson was silent because it did not find its settings file: strace showed the result
-1 ENOENTfor theopenatof /etc/nightsync/sync.conf right before the exit.
Step 8 of 8 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson