Bash-4.4 patch 16
This commit is contained in:
@@ -37,7 +37,10 @@ extern int errno;
|
|||||||
# define SEEK_CUR 1
|
# define SEEK_CUR 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern int executing_builtin;
|
||||||
|
|
||||||
extern void check_signals_and_traps (void);
|
extern void check_signals_and_traps (void);
|
||||||
|
extern void check_signals (void);
|
||||||
extern int signal_is_trapped (int);
|
extern int signal_is_trapped (int);
|
||||||
|
|
||||||
/* Read LEN bytes from FD into BUF. Retry the read on EINTR. Any other
|
/* Read LEN bytes from FD into BUF. Retry the read on EINTR. Any other
|
||||||
@@ -50,21 +53,13 @@ zread (fd, buf, len)
|
|||||||
{
|
{
|
||||||
ssize_t r;
|
ssize_t r;
|
||||||
|
|
||||||
#if 0
|
|
||||||
#if defined (HAVE_SIGINTERRUPT)
|
|
||||||
if (signal_is_trapped (SIGCHLD))
|
|
||||||
siginterrupt (SIGCHLD, 1);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while ((r = read (fd, buf, len)) < 0 && errno == EINTR)
|
while ((r = read (fd, buf, len)) < 0 && errno == EINTR)
|
||||||
check_signals_and_traps (); /* XXX - should it be check_signals()? */
|
/* XXX - bash-5.0 */
|
||||||
|
/* We check executing_builtin and run traps here for backwards compatibility */
|
||||||
#if 0
|
if (executing_builtin)
|
||||||
#if defined (HAVE_SIGINTERRUPT)
|
check_signals_and_traps (); /* XXX - should it be check_signals()? */
|
||||||
siginterrupt (SIGCHLD, 0);
|
else
|
||||||
#endif
|
check_signals ();
|
||||||
#endif
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,6 @@
|
|||||||
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
||||||
looks for to find the patch level (for the sccs version string). */
|
looks for to find the patch level (for the sccs version string). */
|
||||||
|
|
||||||
#define PATCHLEVEL 15
|
#define PATCHLEVEL 16
|
||||||
|
|
||||||
#endif /* _PATCHLEVEL_H_ */
|
#endif /* _PATCHLEVEL_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user