Apparently init --user adopts orphans. To quote the author
Stewart Smith:
As much as one can be happy in Ubuntu breaking something that has been
true for what must be approaching 40 years, yep, I'm happy for you to
make the changes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
struct child_data daemonized;
pid_t pid;
- plan_tests(6);
+ plan_tests(5);
if (pipe(fds) != 0)
err(1, "Failed pipe");
err(1, "Failed read");
ok1(daemonized.pid != pid);
+#if 0 /* Believe it or not, this fails under Ubuntu 13.10 (Upstart) */
ok1(daemonized.ppid == 1);
+#endif
ok1(daemonized.in_root_dir);
ok1(daemonized.read_from_stdin == 0);
ok1(daemonized.write_to_stdout == 0);
struct child_data daemonized;
pid_t pid;
- plan_tests(6);
+ plan_tests(5);
if (pipe(fds) != 0)
err(1, "Failed pipe");
err(1, "Failed read");
ok1(daemonized.pid != pid);
+#if 0 /* Believe it or not, this fails under Ubuntu 13.10 (Upstart) */
ok1(daemonized.ppid == 1);
+#endif
ok1(daemonized.in_root_dir);
ok1(daemonized.read_from_stdin == EBADF);
ok1(daemonized.write_to_stdout == EBADF);