Skip to content

Commit

Permalink
do not resend signal on termination (rhbz#1075635)
Browse files Browse the repository at this point in the history
public bug: https://bugzilla.redhat.com/1075635
patched by: https://src.fedoraproject.org/rpms/ksh/blob/642af4d6/f/ksh-20120801-sufix.patch

src/cmd/ksh93/sh/io.c: io_prompt():
- Reset the currently running command's exit status (exitval) when
  writing the prompt. This does not affect "$?" which is savexit.
  • Loading branch information
McDutchie committed Sep 25, 2020
1 parent 3050bf2 commit 352e68d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/ksh93/sh/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ static int io_prompt(Shell_t *shp,Sfio_t *iop,register int flag)
}
#endif /* TIOCLBIC */
cp = sh_mactry(shp,nv_getval(sh_scoped(shp,PS1NOD)));
shp->exitval = 0;
for(;c= *cp;cp++)
{
if(c==HIST_CHAR)
Expand Down

0 comments on commit 352e68d

Please sign in to comment.