[notmuch] [PATCH 1/2] notmuch-new: Only install SIGALRM if not running under gdb

2009-11-22 Thread Carl Worth
On Sun, 22 Nov 2009 00:44:31 +, Chris Wilson wrote: > I felt sorry for Carl trying to step through an exception from xapian > and suffering from the SIGALARMs.. You're too kind, Chris. These are both pushed. And did you notice the way I didn't push as soon as I found your patches in my

[notmuch] [PATCH 1/2] notmuch-new: Only install SIGALRM if not running under gdb

2009-11-22 Thread Chris Wilson
I felt sorry for Carl trying to step through an exception from xapian and suffering from the SIGALARMs.. We can detect if the user launched notmuch under a debugger by either checking our cmdline for the presence of the gdb string or querying if valgrind is controlling our process. For the latter