mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Sync OpenBSD patchset 405:
Don't print exit messages when used as a login shell, requested by martynas@ a while back.
This commit is contained in:
parent
b8e4bd2029
commit
9800dc4697
8
client.c
8
client.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: client.c,v 1.75 2009-09-23 15:18:56 tcunha Exp $ */
|
/* $Id: client.c,v 1.76 2009-10-15 01:45:13 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -216,6 +216,11 @@ client_main(struct client_ctx *cctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
/*
|
||||||
|
* Print exit status message, unless running as a login shell where it
|
||||||
|
* would either be pointless or irritating.
|
||||||
|
*/
|
||||||
|
if (!login_shell) {
|
||||||
if (sigterm) {
|
if (sigterm) {
|
||||||
printf("[terminated]\n");
|
printf("[terminated]\n");
|
||||||
return (1);
|
return (1);
|
||||||
@ -241,6 +246,7 @@ out:
|
|||||||
printf("[unknown error]\n");
|
printf("[unknown error]\n");
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user