aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorMarouane L <techmetx11@disroot.org>2022-09-26 12:29:14 +0100
committerMichael Vetter <jubalh@iodoru.org>2022-10-12 12:25:00 +0200
commit2d11a35ee1975f015c1c4d7696d71a408178e5be (patch)
treeabd26bacfea04f1d49315a8f191b69924d8b8d9e /src/tools
parent7ffe55e980a7d33f1129331bb5dc34c6455b55a4 (diff)
downloadprofani-tty-2d11a35ee1975f015c1c4d7696d71a408178e5be.tar.gz
Spawn external programs asynchronously
Drawback is that we can't check the exitcode anymore. But we were unsure why/when we need this, see: https://github.com/profanity-im/profanity/pull/1760/files#r980868708 Fixes https://github.com/profanity-im/profanity/issues/1759
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/aesgcm_download.c2
-rw-r--r--src/tools/http_download.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/aesgcm_download.c b/src/tools/aesgcm_download.c
index 45aa7b66..e7b5b42c 100644
--- a/src/tools/aesgcm_download.c
+++ b/src/tools/aesgcm_download.c
@@ -155,7 +155,7 @@ aesgcm_file_get(void* userdata)
aesgcm_dl->filename);
// TODO: Log the error.
- if (!call_external(argv, NULL, NULL)) {
+ if (!call_external(argv)) {
http_print_transfer_update(aesgcm_dl->window, aesgcm_dl->url,
"Downloading '%s' failed: Unable to call "
"command '%s' with file at '%s' (%s).",
diff --git a/src/tools/http_download.c b/src/tools/http_download.c
index 9920caa1..5a5b8ef8 100644
--- a/src/tools/http_download.c
+++ b/src/tools/http_download.c
@@ -202,7 +202,7 @@ http_file_get(void* userdata)
download->filename);
// TODO: Log the error.
- if (!call_external(argv, NULL, NULL)) {
+ if (!call_external(argv)) {
http_print_transfer_update(download->window, download->url,
"Downloading '%s' failed: Unable to call "
"command '%s' with file at '%s' (%s).",