Go to file
Koichi Murase 2e569d37c9 fix a problem that the standard streams are unexpectedly closed
In the current implementation, the slave PTY (assigned to the variable
`s') is always closed after duplicating it to file descriptors of
standard streams (0, 1, and 2).  However, when the allocated slave PTY
`s' is already one of 0, 1, or 2, this causes unexpected closing of a
standard stream.  The same problem occurs when the file descriptor of
the master PTY (the variable `m') is one of 0, 1, or 2.

In this patch, the original master PTY (m) is closed before it would
be overwritten by duplicated slave PTYs.  The original slave PTY (s)
is closed only when it is not one of the stanrad streams.
2021-12-21 23:57:38 -03:00
patches Added anysize, font2, newterm (orphan) patches 2021-08-19 17:33:28 -03:00
.gitignore Change emoji font 2021-10-25 14:24:33 -03:00
FAQ FAQ: fix single-buffer patch 2020-06-01 14:09:46 +02:00
LEGACY LEGACY: typo. 2012-09-18 19:08:03 +02:00
LICENSE LICENSE: bump years 2020-06-17 23:49:40 +02:00
Makefile Minor changes 2021-02-28 23:12:19 -03:00
README Changed README 2020-11-19 15:09:42 -03:00
TODO Remove old TODO entry. 2015-04-13 17:06:11 +02:00
arg.h don't modify argv, use a counter 2018-03-20 21:22:27 +01:00
config.def.h Change emoji font 2021-10-25 14:24:33 -03:00
config.mk bump version to 0.8.4 2020-06-19 11:27:17 +02:00
st.1 Add support for scroll(1) 2020-04-11 15:23:20 +02:00
st.c fix a problem that the standard streams are unexpectedly closed 2021-12-21 23:57:38 -03:00
st.h Added anysize, font2, newterm (orphan) patches 2021-08-19 17:33:28 -03:00
st.info Partially add back in "support REP (repeat) escape sequence" 2020-05-30 22:04:28 +02:00
win.h ST: Add WM_ICON_NAME property support 2020-10-18 11:17:11 +02:00
x.c Added anysize, font2, newterm (orphan) patches 2021-08-19 17:33:28 -03:00

README

My st build.