diff options
author | nandesu-utils <70854931+nandesu-utils@users.noreply.github.com> | 2022-08-24 23:50:24 +0300 |
---|---|---|
committer | nandesu-utils <70854931+nandesu-utils@users.noreply.github.com> | 2022-08-27 16:25:15 +0300 |
commit | 056b19eb91c03c8a8d5f261fa38450b5238986dc (patch) | |
tree | 9badc2bef39a30f1b6d404277ed7a2d7b195368e /src/database.c | |
parent | 0864bc68d7037abd41cf75901ffaa0cd8bceb04d (diff) | |
download | profani-tty-056b19eb91c03c8a8d5f261fa38450b5238986dc.tar.gz |
refactored call_external code
unluckily here the code neglected the fact that glib will set an error to a location that was pointed by the error pointer if it is not null. but it was of an undefined value hence profanity crashed. now it is null as it must be. also spawn error is returned when glib could not spawn the task for some reason like the executable file does not exist but if the exit status was non-zero it neglected the exit error and tried to output a spawn error instead. now we check whether the process that we instantiated has exited successfully also now code uses `g_spawn_check_wait_status` which `g_spawn_check_exit_status` has been aliased to.
Diffstat (limited to 'src/database.c')
0 files changed, 0 insertions, 0 deletions