incomplete output on kill signal

Bug #1836367 reported by Jozsef Fleischer
6
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/fatrace_output.txt -f W
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/fatrace_output.txt
rsyslogd(21480): W /var/log/heat/heat-api.log
apache2(4389): W /var/log/apache2/cinder-api.access.log
ruby(7036): W /var/log/mroot@hostname-1:~#

The last line is not terminated with NL.

Revision history for this message
Martin Pitt (pitti) wrote :

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).

Changed in fatrace:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.