Don't print exit messages when used as a login shell, requested by martynas@ a

while back.
This commit is contained in:
Nicholas Marriott 2009-10-13 13:11:06 +00:00
parent 5d78371628
commit 760e39e405

View File

@ -212,6 +212,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);
@ -237,6 +242,7 @@ out:
printf("[unknown error]\n"); printf("[unknown error]\n");
return (1); return (1);
} }
}
} }
int int