/* For simple services we immediately start
* the START_POST binaries. */
- service_set_main_pid(s, pid);
+ (void) service_set_main_pid(s, pid);
service_enter_start_post(s);
} else if (s->type == SERVICE_FORKING) {
/* For D-Bus services we know the main pid right away, but wait for the bus name to appear on the
* bus. 'notify' and 'exec' services are similar. */
- service_set_main_pid(s, pid);
+ (void) service_set_main_pid(s, pid);
service_set_state(s, SERVICE_START);
} else
assert_not_reached();
if (r < 0)
goto fail;
- service_set_main_pid(s, pid);
+ (void) service_set_main_pid(s, pid);
return;
log_unit_debug(u, "New main PID "PID_FMT" does not belong to service, refusing.", new_main_pid);
}
if (r > 0) {
- service_set_main_pid(s, new_main_pid);
+ (void) service_set_main_pid(s, new_main_pid);
r = unit_watch_pid(UNIT(s), new_main_pid, false);
if (r < 0)
log_unit_debug(u, "D-Bus name %s is now owned by process " PID_FMT, s->bus_name, (pid_t) pid);
- service_set_main_pid(s, pid);
- unit_watch_pid(UNIT(s), pid, false);
+ (void) service_set_main_pid(s, pid);
+ (void) unit_watch_pid(UNIT(s), pid, false);
return 1;
}