Attempt to fix process expansion on Linux

Hopefully addresses https://github.com/fish-shell/fish-shell/issues/455
This commit is contained in:
ridiculousfish
2012-12-18 11:37:54 -08:00
parent f9697c8e36
commit 882a62ad52
2 changed files with 1 additions and 3 deletions

View File

@@ -512,9 +512,7 @@ bool process_iterator_t::next_process(wcstring *out_str, pid_t *out_pid)
if ((cmdfile=wfopen(path + L"/cmdline", "r")))
{
wcstring full_command_line;
signal_block();
fgetws2(&full_command_line, cmdfile);
signal_unblock();
/* The command line needs to be escaped */
cmd = tok_first(full_command_line.c_str());