mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Clean-up: std.posix.kill() returns nothing
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -107,7 +107,7 @@ pub fn authenticate(options: AuthOptions, current_environment: Environment, logi
|
|||||||
{
|
{
|
||||||
// If an error occurs here, we can send SIGTERM to the session
|
// If an error occurs here, we can send SIGTERM to the session
|
||||||
errdefer cleanup: {
|
errdefer cleanup: {
|
||||||
_ = std.posix.kill(child_pid, std.posix.SIG.TERM) catch break :cleanup;
|
std.posix.kill(child_pid, std.posix.SIG.TERM) catch break :cleanup;
|
||||||
_ = std.posix.waitpid(child_pid, 0);
|
_ = std.posix.waitpid(child_pid, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ fn startSession(
|
|||||||
std.posix.chdirZ(pwd.pw_dir.?) catch return error.ChangeDirectoryFailed;
|
std.posix.chdirZ(pwd.pw_dir.?) catch return error.ChangeDirectoryFailed;
|
||||||
|
|
||||||
// Signal to the session process to give up control on the TTY
|
// Signal to the session process to give up control on the TTY
|
||||||
_ = std.posix.kill(options.session_pid, std.posix.SIG.CHLD) catch return error.TtyControlTransferFailed;
|
std.posix.kill(options.session_pid, std.posix.SIG.CHLD) catch return error.TtyControlTransferFailed;
|
||||||
|
|
||||||
// Execute what the user requested
|
// Execute what the user requested
|
||||||
switch (current_environment.display_server) {
|
switch (current_environment.display_server) {
|
||||||
|
|||||||
Reference in New Issue
Block a user