<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/script, branch releng/8.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F8.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F8.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-10-21T05:40:30Z</updated>
<entry>
<title>MFC r226403:</title>
<updated>2011-10-21T05:40:30Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2011-10-21T05:40:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8618c22826c4a5ae97bee61e1a52fc5cfa27a8c0'/>
<id>urn:sha1:8618c22826c4a5ae97bee61e1a52fc5cfa27a8c0</id>
<content type='text'>
In r225809 the intention was to send VEOF only once if STDIN was not a
terminal. Unfortunately the fix was incorrect and for flushtime &gt; 0 it
keept sending VEOF.

Sent VEOF generates ^D\b\b echoed by the terminal, which was reported
in bin/161526. Note, we still send VEOF at least once. Otherwise
commands like below would hang forever:

  echo 1 |script /tmp/script.out cat

PR:		bin/161526
Reported by:	Adrian Wontroba &lt;aw1@stade.co.uk&gt;, Stefan Bethke &lt;stb@lassitu.de&gt;
Tested by:	Stefan Bethke &lt;stb@lassitu.de&gt;
</content>
</entry>
<entry>
<title>MFC r225857:</title>
<updated>2011-10-10T11:06:48Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2011-10-10T11:06:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d569f85c604411b6b5cf5bfcfbcc1f975387959'/>
<id>urn:sha1:4d569f85c604411b6b5cf5bfcfbcc1f975387959</id>
<content type='text'>
 - Fix a few grammar and mdoc nits in script.1

PR:		161088
</content>
</entry>
<entry>
<title>MFC r225809:</title>
<updated>2011-10-04T11:08:31Z</updated>
<author>
<name>Mikolaj Golub</name>
<email>trociny@FreeBSD.org</email>
</author>
<published>2011-10-04T11:08:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bba61be226aea45b385e3e9e81c0f15b186243d5'/>
<id>urn:sha1:bba61be226aea45b385e3e9e81c0f15b186243d5</id>
<content type='text'>
When script(1) reads EOF from input it starts spinning on zero-byte
reads eating 100% CPU. Fix this by skipping select on STDIN after
reading EOF -- permanently if STDIN is not terminal and for one second
if it is.

Also after reading EOF from STDIN we have to pass it to the program
being scripted. The previous approach was to write zero bytes into the
pseudo-terminal. This does not work because zero-byte write does not
have any effect on read. Fix this by sending VEOF instead.

Submitted by:	Ronald Klop &lt;ronald-freebsd8@klop.yi.org&gt;
Discussed with:	kib, Chris Torek &lt;chris.torek@gmail.com&gt;
</content>
</entry>
<entry>
<title>MFC r212832: update manpage</title>
<updated>2010-10-14T03:11:41Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2010-10-14T03:11:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6c88e29a3ea3aebe27e8bf4935fbcfbd59b7f4cc'/>
<id>urn:sha1:6c88e29a3ea3aebe27e8bf4935fbcfbd59b7f4cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r212770 &amp; r212832:</title>
<updated>2010-10-14T01:21:44Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2010-10-14T01:21:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ce4bdc460dac37e6ffb0b5d63d6bd47d2fc72346'/>
<id>urn:sha1:ce4bdc460dac37e6ffb0b5d63d6bd47d2fc72346</id>
<content type='text'>
  + Add the SCRIPT environmental variable to the sub-shell.
  + Add the 'command' argument (if supplied on the command line)
    to the typescript file.
</content>
</entry>
<entry>
<title>MFC r207453:</title>
<updated>2010-05-14T12:34:06Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-05-14T12:34:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8f6794dda3b528eeeb22b19e2e9f3b9322ee5941'/>
<id>urn:sha1:8f6794dda3b528eeeb22b19e2e9f3b9322ee5941</id>
<content type='text'>
  Remove WNOHANG flag from wait3().

  Because script(1) now reliably terminates when the TTY is closed, it may
  be the case that the call to wait3() occurs just before the child
  process exits. This causes error codes to be ignored.

  Just change script(1) to use waitpid() instead of wait3(). This makes it
  more portable and prevents the need for a loop, since waitpid() only
  returns a specified process.

PR:           bin/146189
Tested by:    amdmi3@, older version
</content>
</entry>
<entry>
<title>MFC r205008 and 205009:</title>
<updated>2010-03-25T08:33:56Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-03-25T08:33:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ae65fe952e1b101a8d0a15c0b129c570cfb633a'/>
<id>urn:sha1:4ae65fe952e1b101a8d0a15c0b129c570cfb633a</id>
<content type='text'>
  Make script(1) a little less broken.

  Close the file descriptor to the TTY. There is no reason why the parent
  process should keep track of the descriptor. This ensures that the
  application inside properly drains the TTY during exit(2).

  Reported by:  alfred
</content>
</entry>
<entry>
<title>Deal with double whitespace.</title>
<updated>2004-07-03T00:24:45Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-07-03T00:24:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=557b7fa1488f8937156051e061ac3512330bcb7e'/>
<id>urn:sha1:557b7fa1488f8937156051e061ac3512330bcb7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Mechanically kill hard sentence breaks.</title>
<updated>2004-07-02T22:22:35Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-07-02T22:22:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a3e8b0adc8c622ae61275a94d5d869980a68069'/>
<id>urn:sha1:6a3e8b0adc8c622ae61275a94d5d869980a68069</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bumped document date.</title>
<updated>2004-05-19T09:53:03Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-05-19T09:53:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c548db03535bae503114e2f62f37aceb1127a918'/>
<id>urn:sha1:c548db03535bae503114e2f62f37aceb1127a918</id>
<content type='text'>
Fixed markup nit.
</content>
</entry>
</feed>
