|
|
|
| Hi,
I got an select error. The error code is returned is 14.
As iam new to network programming and this error is occuring from
existing program which was coded before some engineer. Im not in a
position to speak network terms to discuss on mail groups.
This error is occuring only on Aix 5.2 and latest series.
case -1:
if (errno == EINTR)
continue;
DIM_F_RemoteShellLog ("select error" ,
cuserid (NULL) );
The log file encounters "select error".
Any helps will be appreciated, explaining the problem or solution or
comments..
Regards
Siva Kumar S
| |
| Robert Harris 2006-08-02, 7:32 am |
| siva wrote:
> Hi,
>
> I got an select error. The error code is returned is 14.
>
> As iam new to network programming and this error is occuring from
> existing program which was coded before some engineer. Im not in a
> position to speak network terms to discuss on mail groups.
>
> This error is occuring only on Aix 5.2 and latest series.
>
> case -1:
> if (errno == EINTR)
> continue;
> DIM_F_RemoteShellLog ("select error" ,
> cuserid (NULL) );
>
> The log file encounters "select error".
>
> Any helps will be appreciated, explaining the problem or solution or
> comments..
>
> Regards
> Siva Kumar S
You will get better help if you tell us:
1. the code around the select() call
2. what error code 14 means (it varies from OS to OS) - calling perror()
will print it.
Robert
| |
| Maxim Yegorushkin 2006-08-02, 7:32 am |
|
siva wrote:
> Hi,
>
> I got an select error. The error code is returned is 14.
Could you please translate the error code to its mnemonic. On Linux 14
is EFAULT and select man page and posix docs do not mention this error
code.
You can look it up with something like this:
$ echo "#include <errno.h>" | gcc -E -dD - | grep 14
#define __INT_MAX__ 2147483647
#define __LONG_MAX__ 2147483647L
#define __WCHAR_MAX__ 2147483647
#define __DBL_MIN__ 2.2250738585072014e-308
#define __LDBL_MAX__ 1.18973149535723176502e+4932L
#define __LDBL_MIN__ 3.36210314311209350626e-4932L
# 114 "/usr/include/sys/cdefs.h" 3 4
# 314 "/usr/include/sys/cdefs.h" 2 3 4
#define EFAULT 14 <----------------------
#define EALREADY 114
>
> As iam new to network programming and this error is occuring from
> existing program which was coded before some engineer. Im not in a
> position to speak network terms to discuss on mail groups.
>
> This error is occuring only on Aix 5.2 and latest series.
>
> case -1:
> if (errno == EINTR)
> continue;
> DIM_F_RemoteShellLog ("select error" ,
> cuserid (NULL) );
>
> The log file encounters "select error".
| |
|
| Thanks .
I debuged the script and found it is EFAULT error. Iam looking to find
the solution to fix the problem.
Help is more appreciated.
Regards
Siva Kumar S
Maxim Yegorushkin wrote:[vbcol=seagreen]
> siva wrote:
>
> Could you please translate the error code to its mnemonic. On Linux 14
> is EFAULT and select man page and posix docs do not mention this error
> code.
>
> You can look it up with something like this:
>
> $ echo "#include <errno.h>" | gcc -E -dD - | grep 14
> #define __INT_MAX__ 2147483647
> #define __LONG_MAX__ 2147483647L
> #define __WCHAR_MAX__ 2147483647
> #define __DBL_MIN__ 2.2250738585072014e-308
> #define __LDBL_MAX__ 1.18973149535723176502e+4932L
> #define __LDBL_MIN__ 3.36210314311209350626e-4932L
> # 114 "/usr/include/sys/cdefs.h" 3 4
> # 314 "/usr/include/sys/cdefs.h" 2 3 4
> #define EFAULT 14 <----------------------
> #define EALREADY 114
>
| |
| Maxim Yegorushkin 2006-08-18, 7:32 am |
| siva wrote:
> Thanks .
>
> I debuged the script and found it is EFAULT error. Iam looking to find
> the solution to fix the problem.
Linux syscalls return EFAULT when you pass them bad pointers. Please
check the pointers you pass to select() are valid ones.
|
|
|
|