summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 07:09:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-11-11 07:09:51 +0000
commit6e4d6b085f79615d849ac609782392cb02b8cd4b (patch)
tree99177deb7182c2541f3b689b2e349a0191900938
parentb25fd1841959db221c442110c93e83145826b5d5 (diff)
avoid using err(), use xtermWarning() instead; ok semarie
-rw-r--r--app/xterm/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/xterm/main.c b/app/xterm/main.c
index 9d1880458..3601813d7 100644
--- a/app/xterm/main.c
+++ b/app/xterm/main.c
@@ -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))