<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/pty/pty.c, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Remove a useless check if fd is negative</title>
<updated>2024-11-29T03:38:20+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-11-29T02:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f9d0bc22f5ca019f3c517b42ea4a50867fe56700'/>
<id>f9d0bc22f5ca019f3c517b42ea4a50867fe56700</id>
<content type='text'>
If `slave` is negative, neither `dup2(slave,0)` or `close(slave)` should
be executed. I believe this check is completely useless.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If `slave` is negative, neither `dup2(slave,0)` or `close(slave)` should
be executed. I believe this check is completely useless.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Fix typos</title>
<updated>2024-10-31T03:44:50+00:00</updated>
<author>
<name>kojix2</name>
<email>2xijok@gmail.com</email>
</author>
<published>2024-10-31T03:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=550ac2f2edc07d1b63e3755233df0758a652b53f'/>
<id>550ac2f2edc07d1b63e3755233df0758a652b53f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] [pty] Add clean up to `PTY.spawn`</title>
<updated>2024-10-03T03:38:01+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-10-03T03:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d40db5cfecba8bd4fbc4809cf67024be4d83e113'/>
<id>d40db5cfecba8bd4fbc4809cf67024be4d83e113</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle getlogin failure in PTY.spawn</title>
<updated>2024-08-22T02:20:47+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2024-08-21T21:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a3f5a043fa5b3cb9ae1c684708399f26716ae451'/>
<id>a3f5a043fa5b3cb9ae1c684708399f26716ae451</id>
<content type='text'>
getlogin is only called if USER environment variable is not set,
but if getlogin returns NULL in that case, then do not call
getpwnam, and assume /bin/sh as shell.

Mentioned in comment to bug 20586.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
getlogin is only called if USER environment variable is not set,
but if getlogin returns NULL in that case, then do not call
getpwnam, and assume /bin/sh as shell.

Mentioned in comment to bug 20586.
</pre>
</div>
</content>
</entry>
<entry>
<title>[pty] Fix `ptsname_r` fallback</title>
<updated>2024-04-14T11:27:05+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-14T10:43:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3368913be3838d152e42bde02a94219102b61f71'/>
<id>3368913be3838d152e42bde02a94219102b61f71</id>
<content type='text'>
If `posix_openpt` is available, also `ptsname` should be available.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If `posix_openpt` is available, also `ptsname` should be available.
</pre>
</div>
</content>
</entry>
<entry>
<title>[pty] Support `ptsname_r` of glibc</title>
<updated>2024-04-11T08:57:52+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-08T03:36:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e7f8db9079bc3b0f94a490e7597560ac07f5b072'/>
<id>e7f8db9079bc3b0f94a490e7597560ac07f5b072</id>
<content type='text'>
Although glibc `ptsname_r` man page mentions Tru64 and HP-UX, this
function appears to be declared obsolete on both.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Although glibc `ptsname_r` man page mentions Tru64 and HP-UX, this
function appears to be declared obsolete on both.
</pre>
</div>
</content>
</entry>
<entry>
<title>[pty] Split `chfunc` into functions in steps</title>
<updated>2024-04-09T13:50:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-08T02:55:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0bc71828b596c763f09d674260f97722a311e764'/>
<id>0bc71828b596c763f09d674260f97722a311e764</id>
<content type='text'>
- start a new session
- obtain the new controlling terminal
- drop privileges
- finally, `exec`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- start a new session
- obtain the new controlling terminal
- drop privileges
- finally, `exec`
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a typo, missing `P` in `SETPGRP_VOID`</title>
<updated>2024-04-07T11:54:00+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-07T11:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c4dadfbd47b200b04c59b72ed53948f964ef9cd6'/>
<id>c4dadfbd47b200b04c59b72ed53948f964ef9cd6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "hijack SIGCHLD handler for internal use"</title>
<updated>2024-04-04T12:48:14+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-04-03T14:31:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3ac6a03b2e16da1df818227be02c5129c9804b14'/>
<id>3ac6a03b2e16da1df818227be02c5129c9804b14</id>
<content type='text'>
This reverts commit 054a412d540e7ed2de63d68da753f585ea6616c3.
SIGCHLD `waidpid`, `waitpid_lock` and related code, have been removed
at ruby/ruby#7527.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 054a412d540e7ed2de63d68da753f585ea6616c3.
SIGCHLD `waidpid`, `waitpid_lock` and related code, have been removed
at ruby/ruby#7527.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Show `PTY.getpty` as an alias of `PTY.spawn`</title>
<updated>2023-12-18T11:17:45+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-18T10:52:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=baf1403fba01c36b44dbd7bc658fed748ee7bc1e'/>
<id>baf1403fba01c36b44dbd7bc658fed748ee7bc1e</id>
<content type='text'>
`:nodoc:` directive does not work at method definition in C, and must
be at the implementation function.  That is, there is no way to make
one method visible and another method sharing the implementation
invisible at the same time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`:nodoc:` directive does not work at method definition in C, and must
be at the implementation function.  That is, there is no way to make
one method visible and another method sharing the implementation
invisible at the same time.
</pre>
</div>
</content>
</entry>
</feed>
