1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Cimarron D. Taylor of the University of California, Berkeley. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 294 unchanged lines hidden (view full) --- 303 entry->fts_path, plan->e_len[cnt]); 304 305 if (plan->flags == F_NEEDOK && !queryuser(plan->e_argv)) 306 return (0); 307 308 /* make sure find output is interspersed correctly with subprocesses */ 309 fflush(stdout); 310 |
311 switch (pid = fork()) { |
312 case -1: 313 err(1, "fork"); 314 /* NOTREACHED */ 315 case 0: 316 if (fchdir(dotfd)) { 317 warn("chdir"); 318 _exit(1); 319 } --- 89 unchanged lines hidden (view full) --- 409 if (plan->e_len[cnt]) 410 brace_subst(plan->e_orig[cnt], &plan->e_argv[cnt], 411 file, plan->e_len[cnt]); 412 413 /* don't mix output of command with find output */ 414 fflush(stdout); 415 fflush(stderr); 416 |
417 switch (pid = fork()) { |
418 case -1: 419 err(1, "fork"); 420 /* NOTREACHED */ 421 case 0: 422 execvp(plan->e_argv[0], plan->e_argv); 423 warn("%s", plan->e_argv[0]); 424 _exit(1); 425 } --- 916 unchanged lines hidden --- |