From 182faca2e5ddff768988734b6d6b4b06d7194763 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 29 Dec 2014 00:56:27 -0800 Subject: [PATCH] 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 --- parser.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parser.cpp b/parser.cpp index 530941e4d..ec8f22534 100644 --- a/parser.cpp +++ b/parser.cpp @@ -17,7 +17,6 @@ The fish parser. Contains functions for parsing and evaluating code. #include #include #include -#include #include #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)