~kennylevinsen/seatd

4e3b7b3bb605daf7337db0c922904c251c58289a — Simon Ser 3 days ago fe600ea
seatd-launch: print unlink/kill errors

Makes it easier to find out that something went wrong.
1 files changed, 6 insertions(+), 2 deletions(-)

M seatd-launch/seatd-launch.c
M seatd-launch/seatd-launch.c => seatd-launch/seatd-launch.c +6 -2
@@ 161,8 161,12 @@ int main(int argc, char *argv[]) {
		}
	}

	unlink(sockpath);
	kill(seatd_child, SIGTERM);
	if (unlink(sockpath) != 0) {
		perror("Could not unlink socket");
	}
	if (kill(seatd_child, SIGTERM) != 0) {
		perror("Could not kill seatd");
	}

	if (WIFEXITED(status)) {
		return WEXITSTATUS(status);