mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Added some missing calls to setup_fork_guards() in utilities.
Made echo a builtin
This commit is contained in:
6
exec.cpp
6
exec.cpp
@@ -1238,8 +1238,12 @@ void exec( parser_t &parser, job_t *j )
|
||||
const char *actual_cmd = actual_cmd_str.c_str();
|
||||
|
||||
const wchar_t *reader_current_filename();
|
||||
if (g_log_forks)
|
||||
if (g_log_forks) {
|
||||
printf("forking for '%s' in '%ls'\n", actual_cmd, reader_current_filename());
|
||||
if (std::string(actual_cmd) == "/usr/bin/getopt") {
|
||||
puts("wat");
|
||||
}
|
||||
}
|
||||
pid = execute_fork(true /* must drain threads */);
|
||||
if( pid == 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user