aboutsummaryrefslogtreecommitdiff
path: root/%2525252525252525252525252525252525252525252525252525252525252525252525252525...
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2021-08-24 06:25:05 +0900
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-08-24 13:30:11 +0200
commit1d3142da968da7f6f61f1c1708f39ca233eda150 (patch)
treeb4c2746f480c6d2d03a4dd477b57dcd6990d2dfe /%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid2%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525253dbe891b0d0f8937d581a008fbc6d7139c0d089570%2525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525253dbe891b0d0f8937d581a008fbc6d7139c0d089570%25252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%252525252525252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525253d1%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525253fid%25252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525253fid%252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525253fid%2525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525253fid%25252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525253fid%252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525253fid%252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525253fid%2525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525252525253fid%25252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525253fid%252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525253fid%2525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525253fid%25252525253db02d612aba5c724811990045d12ce04b7da70809%252525253fid%252525253db02d612aba5c724811990045d12ce04b7da70809%2525253fid%2525253db02d612aba5c724811990045d12ce04b7da70809%25253fid%25253db02d612aba5c724811990045d12ce04b7da70809%253fid%253d5416472bd5c1a19bbdd2d45f665261214d80864c%3fid%3d2f6e597ed871cff91c627850d03152cae5f45779?id=1d3142da968da7f6f61f1c1708f39ca233eda150
parent2ec571a30c0c3b1a17f6b3631c80d573582f59a1 (diff)
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.
Diffstat (limited to '%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d1%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253fid2%252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525252525253dbe891b0d0f8937d581a008fbc6d7139c0d089570%2525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525253dbe891b0d0f8937d581a008fbc6d7139c0d089570%25252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494&id2%252525252525252525252525252525252525252525252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525252525252525252525252525253fshowmsg%25252525252525252525252525252525252525252525252525252525253d1%2525252525252525252525252525252525252525253fshowmsg%2525252525252525252525252525252525252525253d1%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525252525253fid%25252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525252525253fid%252525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525252525252525253fid%2525252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%25252525252525252525252525253fid%25252525252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%252525252525252525252525253fid%252525252525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525252525253fid%252525252525252525253d8b6466c6f649213a34fc9f8a3270479b67316494%2525252525252525253fid%2525252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525252525253fid%25252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%252525252525253fid%252525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%2525252525253fid%2525252525253dfe9fc3ea4ce8d3b28622616d6d4f79ec940a2ddf%25252525253fid%25252525253db02d612aba5c724811990045d12ce04b7da70809%252525253fid%252525253db02d612aba5c724811990045d12ce04b7da70809%2525253fid%2525253db02d612aba5c724811990045d12ce04b7da70809%25253fid%25253db02d612aba5c724811990045d12ce04b7da70809%253fid%253d5416472bd5c1a19bbdd2d45f665261214d80864c%3fid%3d2f6e597ed871cff91c627850d03152cae5f45779?id=1d3142da968da7f6f61f1c1708f39ca233eda150')
0 files changed, 0 insertions, 0 deletions