#include "dinit-log.h"
#include "dinit-socket.h"
#include "dinit-util.h"
+#include "baseproc-sys.h"
/*
* service.cc - Service management.
void service_record::stopped() noexcept
{
if (onstart_flags.runs_on_console) {
- tcsetpgrp(0, getpgrp());
+ bp_sys::tcsetpgrp(0, bp_sys::getpgrp());
discard_console_log_buffer();
release_console();
}
{
// If we start on console but don't keep it, release it now:
if (have_console && ! onstart_flags.runs_on_console) {
- tcsetpgrp(0, getpgrp());
+ bp_sys::tcsetpgrp(0, bp_sys::getpgrp());
release_console();
}
void service_record::failed_to_start(bool depfailed) noexcept
{
if (have_console) {
- tcsetpgrp(0, getpgrp());
+ bp_sys::tcsetpgrp(0, bp_sys::getpgrp());
release_console();
}
if (waiting_for_console) {