Skip to content

Commit

Permalink
dont block signals by default lol
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed May 19, 2024
1 parent 89135f1 commit cffa2aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ int parse_args(int argc, char *argv[], Signal signals[31]) {
int c = 0;
int cmd_offset = 0;

// SIGWINCH needs to be registered by default for resizing to work
signals[27].sig = SIGWINCH;

for (int i = 1; i < argc && cmd_offset == 0; i++) {
char *arg = argv[i];
int type = get_type(arg);
Expand Down
3 changes: 1 addition & 2 deletions src/gdmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ void io_handler(int pty) {
}
}

for (int i = 0; i < 31; i++)
if (signals[i].sig) trap(signals[i].sig, sig_handler);
for (int i = 1; i < 32; i++) trap(i, sig_handler);

while (waitpid(child_pid, NULL, WNOHANG) == 0) {
if ((n = read(pty, buf, sizeof(buf))) <= 0) continue;
Expand Down

0 comments on commit cffa2aa

Please sign in to comment.