anakryiko / retsnoop

Investigate kernel error call stacks
BSD 2-Clause "Simplified" License
210 stars 34 forks source link

retsnoop: Flush stdout before detaching phase #10

Closed netoptimizer closed 2 years ago

netoptimizer commented 2 years ago

The mass detaching can take significant amount of time.

The issue is that the message "Detaching..." isn't shown on the command line when pressing Ctrl-C, because of stdout buffering. Thus, the end-user can get impatient.

Fix this by flushing stdout after printf "Detaching..." statement.

netoptimizer commented 2 years ago

Fixed spelling in commit message and force-pushed

anakryiko commented 2 years ago

thanks!