mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
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
This commit is contained in:
parent
14834ff076
commit
182faca2e5
1 changed files with 0 additions and 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)
|
||||
|
|
Loading…
Reference in a new issue