#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
+#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
}
#endif
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
pid = fork ();
if (pid < 0)
/* Close the parent's end of the pipes. */
close_and_invalidate (&child_err_report_pipe[READ_END]);
close_and_invalidate (&babysitter_pipe[0].fd);
-
+
+ fflush (stdout);
+ fflush (stderr);
+
/* Create the child that will exec () */
grandchild_pid = fork ();
_dbus_fd_set_close_on_exec (fds[1]);
}
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
pid = fork ();
if (pid < 0)
{
goto out;
}
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
pid = fork ();
if (pid < 0)
{
#include "dbus-test.h"
#include <sys/types.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
}
_dbus_verbose ("forking...\n");
+
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
switch ((child_pid = fork ()))
{
case -1:
#include <config.h>
#include "test-utils.h"
+#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifndef DBUS_WIN
if (do_fork)
{
- pid_t pid = fork ();
+ pid_t pid;
+
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
+ pid = fork ();
if (pid != 0)
exit (0);
sleep (1);
exit (1);
}
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
ret = fork ();
if (ret < 0)
exit (1);
}
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
ret = fork ();
if (ret < 0)
{
verbose ("=== Babysitter's intermediate parent created\n");
/* Fork once more to create babysitter */
-
+
+ fflush (stdout);
+ fflush (stderr);
ret = fork ();
if (ret < 0)
{
return 127;
}
+ /* Make sure our output buffers aren't redundantly printed by both the
+ * parent and the child */
+ fflush (stdout);
+ fflush (stderr);
+
bus_pid = fork ();
if (bus_pid < 0)
!dbus_setenv ("DBUS_STARTER_BUS_TYPE", NULL))
oom ();
+ fflush (stdout);
+ fflush (stderr);
+
app_pid = fork ();
if (app_pid < 0)