aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-07 11:35:22 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-07 11:35:22 -0800
commitce859c9e92cc50f9b4ff20edfec8e905c298d29a (patch)
treee5e6a01755ac10d433588b5b0528c0e82d8eed8a /exec.cpp
parent8ed20f3c28fd194762afe2b859e0b3cacc066e61 (diff)
Added some missing calls to setup_fork_guards() in utilities.
Made echo a builtin
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/exec.cpp b/exec.cpp
index a9fff767..54ee809a 100644
--- a/exec.cpp
+++ b/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 )
{