util-linux/misc-utils
Theodore Ts'o fdb3e93ce9 uuidd: Avoid closing the server socket when calling create_daemon()
In the event that file descriptors 0-2 are closed when uuidd is
started, the server socket could be created as a file descriptor that
will get closed when create_daemon() tries detaching the uuidd daemon
from its controlling tty.   Avoid this case by using dup(2).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-30 23:26:09 -04:00
..
.gitignore uuidd: new command (UUID daemon from e2fsprogs) 2009-05-22 10:06:16 +02:00
Makefile.am build-sys: fix --disable-uuidd 2009-06-28 22:52:29 +02:00
README.cal Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
README.ddate build-sys: fix README filenames and add missing files to EXTRA_DISTs 2007-02-08 12:38:25 +01:00
README.flushb build-sys: fix README filenames and add missing files to EXTRA_DISTs 2007-02-08 12:38:25 +01:00
README.namei Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
README.namei2 build-sys: fix README filenames and add missing files to EXTRA_DISTs 2007-02-08 12:38:25 +01:00
README.reset build-sys: fix README filenames and add missing files to EXTRA_DISTs 2007-02-08 12:38:25 +01:00
cal.1 cal: determine the first day of week from the locale 2009-03-10 13:01:39 +01:00
cal.c cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY. 2009-05-19 14:25:43 +02:00
chkdupexe.1 Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
chkdupexe.pl Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
ddate.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
ddate.c ddate: 11th, 12th and 13th of month 2008-06-09 12:49:40 +02:00
kill.1 kill: man page is missing a description of "kill -0" 2008-01-28 15:17:45 +01:00
kill.c remove hardcoded package name from some utils 2007-07-27 12:12:00 +02:00
kill.h Imported from util-linux-2.10m tarball. 2006-12-07 00:25:43 +01:00
logger.1 manpage typos 2007-07-24 13:51:06 +02:00
logger.c logger: several strings without gettext calls 2008-10-03 09:17:07 +02:00
look.1 look: man page clarification 2007-07-25 18:03:52 +02:00
look.c build-sys: nls/locale handling in util-linux-ng general 2007-09-19 23:15:21 +02:00
mcookie.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
mcookie.c remove CVS keywords 2008-07-28 11:10:08 +02:00
namei.1 namei: add missing options to namei.1 2009-01-27 15:00:35 +01:00
namei.c namei: add --vertical option 2009-01-27 14:48:32 +01:00
procs.c Imported from util-linux-2.10s tarball. 2006-12-07 00:25:44 +01:00
rename.1 rename: add description about option -V to manpage 2007-09-05 11:51:35 +02:00
rename.c rename: remove useless variable 2007-09-05 11:51:11 +02:00
reset Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
reset.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
reset.033c build-sys: fix README filenames and add missing files to EXTRA_DISTs 2007-02-08 12:38:25 +01:00
script.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
script.c include: clean up _PATH_DEV_* macros 2009-06-30 01:13:42 +02:00
scriptreplay.1 scriptreplay: rewrite in C 2008-04-14 10:50:18 +02:00
scriptreplay.c scriptreplay: new implementation is out-of-sync 2008-08-13 11:54:13 +02:00
setterm.1 setterm: fix -blank man page 2008-12-05 11:41:28 +01:00
setterm.c setterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN 2008-02-08 02:01:27 +01:00
uuidd.8 uuidd: move uuidd files from /var/lib/libuuid to /var/run/uuidd 2009-06-29 15:59:48 +02:00
uuidd.c uuidd: Avoid closing the server socket when calling create_daemon() 2009-06-30 23:26:09 -04:00
uuidgen.1 uuidgen: new command (from e2fsprogs) 2009-05-22 10:06:16 +02:00
uuidgen.c uuidgen: new command (from e2fsprogs) 2009-05-22 10:06:16 +02:00
whereis.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
whereis.c whereis: include dirent.h instead sys/dir.h 2008-07-28 11:08:30 +02:00
write.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
write.c misc-utils: write include signal.h directly 2008-07-28 11:08:09 +02:00

README.reset

RedHat and SuSE take the program reset from ncurses,
 where reset is a name for the program tset.
 It is approximately equivalent to
	stty sane; tputs rs1; tputs rs2; tputs rf
 with `tputs rf' replaced by `tputs if' when there is an
 init_file but no reset_file. In the comments it wonders
 whether also sending rs3, rmacs, rmul, rmm might be a good idea.

Slackware uses the small script given here.
 The part `echo -e \\033c' is the canonical reset of the kernel
 console status, and is equivalent to `tputs rs1' for a linux
 terminal.

So, both versions are approximately the same.


[A disadvantage of `echo -e \\033c' might be that it is potentially
wrong on a non-vt100, non-xterm, non-linux terminal.
An advantage is that there are terminfo entries for xterm around
that only use rs1=^O as reset, and then \Ec is much better.]