Where to start First steps track · 15 stages
Linux Labs

Inside the system: resources, kernel, processes

Quiz: what a process is doing

Question 5 of 10
Leave the quiz

Read the output

The mailer service is alive but doing nothing. What is it waiting for?

$ sudo timeout 3 strace -p 1022
strace: Process 1022 attached
flock(4, LOCK_EX
$ sudo ls -l /proc/1022/fd
lr-x------ 1 root root 64 Oct 20 23:42 0 -> /dev/null
lrwx------ 1 root root 64 Oct 20 23:42 1 -> socket:[7831]
lrwx------ 1 root root 64 Oct 20 23:42 2 -> socket:[7831]
l-wx------ 1 root root 64 Oct 20 23:42 3 -> /var/log/mailer.log
l-wx------ 1 root root 64 Oct 20 23:42 4 -> /var/lib/mailer/queue.lock
Back A–C or ↵ Sign in to answer
Loading…