incomplete output on kill signal
Bug #1836367 reported by
Jozsef Fleischer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fatrace |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When the fatrace process is killed with KILL signal, then the last line in the file output is incomplete:
root@hostname-1:~# ps -ef | grep fatrace
root 19127 16110 0 14:42 pts/0 00:00:00 fatrace -c -o /var/tmp/
root 20245 19795 0 14:42 pts/1 00:00:00 grep --color=auto fatrace
root@hostname-1:~# kill -9 19127
root@hostname-1:~# tail -3 /var/tmp/
rsyslogd(21480): W /var/log/
apache2(4389): W /var/log/
ruby(7036): W /var/log/
The last line is not terminated with NL.
To post a comment you must log in.
This isn't something that can be "fixed" reliably -- there's no escaping or controlling a SIGKILL. If you want to gracefully shut down fatrace, then use SIGTERM or SIGINT (i. e. Control-C).