avoid using err(), use xtermWarning() instead; ok semarie

This commit is contained in:
deraadt 2015-11-11 07:09:50 +00:00
parent 72507096a1
commit 3ab7d7d094

View File

@ -2598,8 +2598,12 @@ main(int argc, char *argv[]ENVP_ARG)
if (resource.maximized)
RequestMaximize(term, True);
#endif
if (pledge("stdio rpath wpath cpath id proc tty", NULL) == -1)
err(1, "pledge");
if (pledge("stdio rpath wpath cpath id proc tty", NULL) == -1) {
xtermWarning("pledge\n");
exit(1);
}
for (;;) {
#if OPT_TEK4014
if (TEK4014_ACTIVE(term))