File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1129,7 +1129,7 @@ void exec(parser_t &parser, job_t *j)
1129
1129
1130
1130
case INTERNAL_BUILTIN:
1131
1131
{
1132
- int skip_fork;
1132
+ bool skip_fork;
1133
1133
1134
1134
/*
1135
1135
Handle output from builtin commands. In the general
@@ -1165,7 +1165,7 @@ void exec(parser_t &parser, job_t *j)
1165
1165
{
1166
1166
const std::string res = wcs2string (get_stdout_buffer ());
1167
1167
io->out_buffer_append (res.c_str (), res.size ());
1168
- skip_fork = 1 ;
1168
+ skip_fork = true ;
1169
1169
}
1170
1170
1171
1171
if (! skip_fork && j->io .empty ())
@@ -1179,15 +1179,15 @@ void exec(parser_t &parser, job_t *j)
1179
1179
const std::string outbuff = wcs2string (out);
1180
1180
const std::string errbuff = wcs2string (err);
1181
1181
do_builtin_io (outbuff.data (), outbuff.size (), errbuff.data (), errbuff.size ());
1182
- skip_fork = 1 ;
1182
+ skip_fork = true ;
1183
1183
}
1184
1184
1185
1185
for (io_chain_t ::iterator iter = j->io .begin (); iter != j->io .end (); iter++)
1186
1186
{
1187
1187
io_data_t *tmp_io = *iter;
1188
1188
if (tmp_io->io_mode == IO_FILE && strcmp (tmp_io->filename_cstr , " /dev/null" ) != 0 )
1189
1189
{
1190
- skip_fork = 0 ;
1190
+ skip_fork = false ;
1191
1191
break ;
1192
1192
}
1193
1193
}
You can’t perform that action at this time.
0 commit comments