this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

widgets(terminal): set global_vts to null on last exit

+4 -2
-1
src/widgets/terminal/Command.zig
··· 69 69 } 70 70 71 71 fn handleSigChild(_: c_int) callconv(.C) void { 72 - std.log.err("sigchild", .{}); 73 72 const result = std.posix.waitpid(-1, 0); 74 73 75 74 Terminal.global_vt_mutex.lock();
+4 -1
src/widgets/terminal/Terminal.zig
··· 107 107 var vts = global_vts orelse break :pid; 108 108 if (self.cmd.pid) |pid| 109 109 _ = vts.remove(pid); 110 - if (vts.count() == 0) vts.deinit(); 110 + if (vts.count() == 0) { 111 + vts.deinit(); 112 + global_vts = null; 113 + } 111 114 } 112 115 self.cmd.kill(); 113 116 if (self.thread) |thread| {