Ticket #45309: gspawn.c-print-sleep.diff
File gspawn.c-print-sleep.diff, 1.2 KB (added by ewen-naos-nz (Ewen McNeill), 10 years ago) |
---|
-
(a) /Users/ewen/Desktop/gspawn.c-orig-2014-11-02 vs. (b) gspawn.c
a b 1334 1334 if (standard_error && !g_unix_open_pipe (stderr_pipe, FD_CLOEXEC, error)) 1335 1335 goto cleanup_and_fail; 1336 1336 1337 /* XXX: Debugging prints */ 1338 fprintf (stderr, "About to fork in fork_exec_with_pipes()\n"); 1337 1339 pid = fork (); 1340 fprintf (stderr, "Immediately after fork in fork_exec_with_pipes(), pid=%ld\n", (long)pid); 1338 1341 1339 1342 if (pid < 0) 1340 1343 { … … 1353 1356 /* Immediate child. This may or may not be the child that 1354 1357 * actually execs the new process. 1355 1358 */ 1359 /* XXX: Fork debugging assistance */ 1360 fprintf (stderr, "Child PID started as %ld\n", (long)getpid()); 1361 sleep(5); 1356 1362 1357 1363 /* Reset some signal handlers that we may use */ 1358 1364 signal (SIGCHLD, SIG_DFL); … … 1427 1433 { 1428 1434 /* Just run the child. 1429 1435 */ 1436 /* XXX: Fork debugging assistance */ 1437 fprintf (stderr, "Child PID %ld calling do_exec()\n", (long)getpid()); 1438 sleep(5); 1430 1439 1431 1440 do_exec (child_err_report_pipe[1], 1432 1441 stdin_pipe[0],