mirror of
https://github.com/nmap/nmap.git
synced 2026-06-28 04:03:30 +00:00
Use an fprintf and abort instead of Nsock's fatal.
In preparation for move to Nbase.
This commit is contained in:
parent
d50afbca7d
commit
6e674f5cf5
1 changed files with 4 additions and 2 deletions
|
|
@ -76,9 +76,10 @@
|
|||
if ((fd) < FD_SETSIZE) { \
|
||||
FD_SET((fd), (set)); \
|
||||
} else { \
|
||||
fatal("%s:%ld: Attempt to FD_SET fd %d, which is not less than" \
|
||||
fprintf(stderr, "%s:%ld: Attempt to FD_SET fd %d, which is not less than" \
|
||||
" FD_SETSIZE (%d). Try using a lower parallelism.", \
|
||||
__FILE__, (long int) __LINE__, (fd), FD_SETSIZE); \
|
||||
abort(); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
|
@ -91,9 +92,10 @@
|
|||
if ((fd) < FD_SETSIZE) { \
|
||||
FD_CLR((fd), (set)); \
|
||||
} else { \
|
||||
fatal("%s:%ld: Attempt to FD_CLR fd %d, which is not less than" \
|
||||
fprintf(stderr, "%s:%ld: Attempt to FD_CLR fd %d, which is not less than" \
|
||||
" FD_SETSIZE (%d). Try using a lower parallelism.", \
|
||||
__FILE__, (long int) __LINE__, (fd), FD_SETSIZE); \
|
||||
abort(); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue