tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
956 stars 42 forks source link

Fix signal handling (regression from #143) #147

Closed hartwork closed 7 months ago

hartwork commented 7 months ago

Regression from #143

@edgar-bonet I only noticed now that the signal handlers have a problem writing to signal_write_fd if they are triggered before signal_write_fd has been initialized. This change in order addresses the problem.