Changeset 6eaafb0 for owl.c


Ignore:
Timestamp:
Mar 25, 2011, 3:55:41 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
111850c
Parents:
2314693
git-author:
David Benjamin <davidben@mit.edu> (03/02/11 13:34:33)
git-committer:
David Benjamin <davidben@mit.edu> (03/25/11 03:55:41)
Message:
Cleanly destroy the signal thread on shutdown

This isn't strictly necessary here, but we should probably be in the
habit of safely cleaning up our helper threads.

Switch the implementation from GThread to pthreads directly. The
cleanest way to kill a signaling thread is to send it SIGTERM with
pthread_kill, but GThread doesn't expose that and gives no way to get at
the pthread_t.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r567de81 r6eaafb0  
    631631  /* Shut down everything. */
    632632  owl_zephyr_shutdown();
     633  owl_signal_shutdown();
    633634  owl_shutdown_curses();
    634635  return 0;
Note: See TracChangeset for help on using the changeset viewer.