Mercurial > pidgin
view finch/libgnt/test/key.c @ 26879:7c58f6f50f16
Block/Unblock the signal handler when if it's unblocked/blocked.
Trying to unblock the handler when it has not been blocked yet causes a
'handler not blocked' error message. When this message is added in the
debug window, it goes into a mutex-lock from this line:
gtk_list_store_append(debug_win->store, &iter);
I have noticed this before on some occasions, where pidgin goes into a
freeze when doing something from a signal-handler causes a debug message
to be printed. Anyone knows why?
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 16 May 2009 17:11:50 +0000 |
parents | f104e1d45d85 |
children |
line wrap: on
line source
#include <ncurses.h> int main() { int ch; initscr(); noecho(); cbreak(); refresh(); WINDOW *win = newpad(20, 30); box(win, 0, 0); prefresh(win, 0, 0, 0, 0, 19, 29); doupdate(); while ((ch = getch())) { printw("%d ", ch); refresh(); } endwin(); return 0; }