mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
This commit is contained in:
parent
2cb15a23f8
commit
8bc4400762
9 changed files with 40 additions and 25 deletions
|
|
@ -654,7 +654,7 @@ zhandler(int sig)
|
|||
_exit(SIGPIPE);
|
||||
else if (!isatty(SHTTY)) {
|
||||
stopmsg = 1;
|
||||
zexit(SIGPIPE, 1);
|
||||
zexit(SIGPIPE, ZEXIT_SIGNAL);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
@ -662,7 +662,7 @@ zhandler(int sig)
|
|||
case SIGHUP:
|
||||
if (!handletrap(SIGHUP)) {
|
||||
stopmsg = 1;
|
||||
zexit(SIGHUP, 1);
|
||||
zexit(SIGHUP, ZEXIT_SIGNAL);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -670,7 +670,7 @@ zhandler(int sig)
|
|||
if (!handletrap(SIGINT)) {
|
||||
if ((isset(PRIVILEGED) || isset(RESTRICTED)) &&
|
||||
isset(INTERACTIVE) && (noerrexit & NOERREXIT_SIGNAL))
|
||||
zexit(SIGINT, 1);
|
||||
zexit(SIGINT, ZEXIT_SIGNAL);
|
||||
if (list_pipe || chline || simple_pline) {
|
||||
breaks = loops;
|
||||
errflag |= ERRFLAG_INT;
|
||||
|
|
@ -703,7 +703,7 @@ zhandler(int sig)
|
|||
errflag = noerrs = 0;
|
||||
zwarn("timeout");
|
||||
stopmsg = 1;
|
||||
zexit(SIGALRM, 1);
|
||||
zexit(SIGALRM, ZEXIT_SIGNAL);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue