diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-12-29 00:56:27 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-12-29 00:56:27 -0800 |
commit | 182faca2e5ddff768988734b6d6b4b06d7194763 (patch) | |
tree | a95f0845ba2e6cbeadcb26b9300dd9adf7219cab /parser.cpp | |
parent | 14834ff076af7baebd1c02f55a7d3271fbd53600 (diff) |
Stop blocking signals within job_promote
Since we no longer inspect the job list from
a signal handler, we don't need to muck with signals
when modifying the job list
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -17,7 +17,6 @@ The fish parser. Contains functions for parsing and evaluating code. #include <termios.h> #include <pwd.h> #include <dirent.h> -#include <signal.h> #include <algorithm> #include "fallback.h" @@ -809,14 +808,11 @@ bool parser_t::job_remove(job_t *j) void parser_t::job_promote(job_t *job) { - signal_block(); - job_list_t::iterator loc = std::find(my_job_list.begin(), my_job_list.end(), job); assert(loc != my_job_list.end()); /* Move the job to the beginning */ my_job_list.splice(my_job_list.begin(), my_job_list, loc); - signal_unblock(); } job_t *parser_t::job_get(job_id_t id) |