From f1c037037d0ab60b219ca2c39c1beb77371ca2fe Mon Sep 17 00:00:00 2001 From: Utkarsh Verma Date: Wed, 13 Jul 2022 07:51:16 +0530 Subject: [PATCH] Minor changes --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index d3e707d..5a5fbfc 100644 --- a/main.c +++ b/main.c @@ -81,9 +81,8 @@ void execBlock(int i, const char* button) { if (button) setenv("BLOCK_BUTTON", button, 1); - setsid(); execl("/bin/sh", "sh", "-c", blocks[i].command, (char*)NULL); - exit(EXIT_SUCCESS); + exit(EXIT_FAILURE); } } @@ -119,7 +118,7 @@ void updateBlock(int i) { while (buffer[j] != '\n' && count < CMDLENGTH) { count++; - // Skip continuation bytes, if any. + // Skip continuation bytes, if any char ch = buffer[j]; int skip = 1; while ((ch & 0xc0) > 0x80)