Properly close the fd and only unlink fifo

このコミットが含まれているのは:
MadcowOG 2023-03-29 18:14:36 -07:00
コミット 4bee0474a0
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -803,9 +803,11 @@ void cleanup(void) {
zwlr_layer_shell_v1_destroy(shell);
if (output_manager)
zxdg_output_manager_v1_destroy(output_manager);
if (fifo_fd)
close(fifo_fd);
if (fifo_path) {
unlink(fifo_path);
remove(fifo_path);
free(fifo_path);
}
if (display)
wl_display_disconnect(display);