mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4968 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3a45d61bf4
commit
e8290c74f7
1 changed files with 12 additions and 0 deletions
|
@ -1062,6 +1062,12 @@ init_ports()
|
|||
if (bind(udp_desc, (void*)&sa, sizeof(sa)) < 0)
|
||||
{
|
||||
fprintf(stderr, "Unable to bind address to UDP socket\n");
|
||||
if (errno == EACCES)
|
||||
{
|
||||
fprintf(stderr, "You probably need to run gdomap as root,\n");
|
||||
fprintf(stderr, "or run the nameserver on a non-standard\n");
|
||||
fprintf(stderr, "port that does not require root privilege.\n");
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -1099,6 +1105,12 @@ init_ports()
|
|||
if (bind(tcp_desc, (void*)&sa, sizeof(sa)) < 0)
|
||||
{
|
||||
fprintf(stderr, "Unable to bind address to TCP socket\n");
|
||||
if (errno == EACCES)
|
||||
{
|
||||
fprintf(stderr, "You probably need to run gdomap as root,\n");
|
||||
fprintf(stderr, "or run the nameserver on a non-standard\n");
|
||||
fprintf(stderr, "port that does not require root privilege.\n");
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
if (listen(tcp_desc, QUEBACKLOG) < 0)
|
||||
|
|
Loading…
Reference in a new issue