git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4967 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-10-04 09:48:57 +00:00
parent de814a77a0
commit 3a45d61bf4
4 changed files with 74 additions and 6 deletions

View file

@ -3156,16 +3156,15 @@ printf(
* Ensure we don't have any open file descriptors which may refer
* to sockets bound to ports we may try to use.
*
* Use '/dev/tty' to produce logging output and use '/dev/null'
* for stdin and stdout.
* Use '/dev/null' for stdin and stdout. Assume stderr is ok.
*/
for (c = 0; c < FD_SETSIZE; c++)
{
(void)close(c);
if (c != 2)
(void)close(c);
}
(void)open("/dev/null", O_RDONLY); /* Stdin. */
(void)open("/dev/null", O_WRONLY); /* Stdout. */
(void)open("/dev/tty", O_WRONLY); /* Stderr. */
init_my_port(); /* Determine port to listen on. */
if (interfaces == 0)

View file

@ -209,7 +209,7 @@ typedef struct {
#define GDO_REQ_SIZE sizeof(gdo_req) /* Size of a request packet. */
/*
* If you have a fascist sysadmin who wqill not let you run gdomap
* If you have a fascist sysadmin who will not let you run gdomap
* as root and will not even let you modify /etc/services to point
* gdomap to another port, you can uncomment the next #define to
* run gdomap on port 6006 (or modify this to a port of your choice).