diff options
author | Thomas White <taw@physics.org> | 2024-12-10 16:37:59 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-12-11 14:50:41 +0100 |
commit | 00aafeac77f2709fbf6b694ed49eee1d68e78943 (patch) | |
tree | 0253553ea8668438d8733583ffdce24a9f2d070c /src | |
parent | f835d17535ad8298516d924ca68408b2e684a143 (diff) |
indexamajig: Exit if exec fails
Otherwise, we might end up with multiple main processes!
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 3fe1db46..2de53017 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -711,7 +711,7 @@ static void start_worker_process(struct sandbox *sb, int slot) if ( p == 0 ) { execvp(indexamajig, nargv); ERROR("Failed to exec!\n"); - return; + exit(1); } free(tmpdir_copy); |