pty_process_unix: _exit() on execvp() failure

Mostly cargo-culting based on a reading of the manpages, interwebs, and
the Vim source.
This commit is contained in:
Justin M. Keyes
2017-12-12 01:31:15 +01:00
parent 34057045be
commit 6203c23449
2 changed files with 6 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
#endif
#include "nvim/ascii.h"
#include "nvim/log.h"
#include "nvim/vim.h"
#include "nvim/globals.h"
#include "nvim/memline.h"
@@ -162,7 +163,7 @@ static void on_signal(SignalWatcher *handle, int signum, void *data)
}
break;
default:
fprintf(stderr, "Invalid signal %d", signum);
ELOG("invalid signal: %d", signum);
break;
}
}