diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-30 02:22:38 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-30 02:22:38 -0800 |
commit | 1879dc4b595e1209d2c7ea159fb6e37287edd520 (patch) | |
tree | 2a0d5a50760a2554bc8a399997ad7cfa96af704f /parser.cpp | |
parent | ea8c6bc15ebd973f41b33a103b1e63cc9a772058 (diff) |
Initial set of changes working to make fish robust against running out of file descriptors
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1202,11 +1202,14 @@ 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) @@ -3755,7 +3758,7 @@ event_block_t::event_block_t(const event_t &evt) : { } -function_block_t::function_block_t(process_t *p, const wcstring &n, bool shadows) : +function_block_t::function_block_t(const process_t *p, const wcstring &n, bool shadows) : block_t(shadows ? FUNCTION_CALL : FUNCTION_CALL_NO_SHADOW), process(p), name(n) |