[1443] in BarnOwl Developers
[nelhage/barnowl] adee9c: Enable signals, and add an interrupted flag.
daemon@ATHENA.MIT.EDU (noreply@github.com)
Thu Oct 29 18:16:41 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
Date: Tue, 5 May 2009 09:49:46 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: http://github.com/nelhage/barnowl
Commit: adee9ccedb908c50d9d9b3cd002afc3acd54af63
http://github.com/nelhage/barnowl/commit/adee9ccedb908c50d9d9b3cd002afc3acd54af63
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M global.c
M owl.c
M owl.h
M select.c
Log Message:
-----------
Enable signals, and add an interrupted flag.
Commit: d6bd3f19f6f99c5ae2f235934541cba7156c1ac1
http://github.com/nelhage/barnowl/commit/d6bd3f19f6f99c5ae2f235934541cba7156c1ac1
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M owl.c
Log Message:
-----------
Refactor owl_handle_input to allow injecting keystrokes.
This patch is preparation for handling SIGINT and injecting a fake
keystroke in response.
Commit: 3a846946c20c4210b3e9f0b10ff079ce29a475c6
http://github.com/nelhage/barnowl/commit/3a846946c20c4210b3e9f0b10ff079ce29a475c6
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M select.c
Log Message:
-----------
Turn unhandled SIGINTs into fake keystrokes.
Commit: bf66f4eeffaeb51d9193f3fe9770e6065393cc4f
http://github.com/nelhage/barnowl/commit/bf66f4eeffaeb51d9193f3fe9770e6065393cc4f
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M functions.c
Log Message:
-----------
Make ^C (really, SIGINT) interrupt searches.
Commit: e0473d2608d419e30bfc7475d22949083018cc9c
http://github.com/nelhage/barnowl/commit/e0473d2608d419e30bfc7475d22949083018cc9c
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M owl.c
Log Message:
-----------
Disable keyboard SIGQUIT.
A not-easily-reconfigurable one-keystroke way to kill barnowl is probably
undesirable.
Commit: 0cb6c26ae0ad3ae91e1deb1e4e95583e37f071cb
http://github.com/nelhage/barnowl/commit/0cb6c26ae0ad3ae91e1deb1e4e95583e37f071cb
Author: Nelson Elhage <nelhage@mit.edu>
Date: 2009-05-04 (Mon, 04 May 2009)
Changed paths:
M functions.c
M global.c
M select.c
Log Message:
-----------
Fix a race that could cause us to miss a SIGINT
When I refactored the previous commits to unmask SIGINT in
owl_global_is_interrupted, I accidentally opened a window for us to miss
a SIGINT for a cycle of the event loop if it arrived in owl_select()
between a call to that functuon and pselect().
Undo that refactoring to make is_interrupted() just poll the flag, add
owl_function_(un)mask_sigint() for convenience, and use them in the
relevant locations.