mirror of
https://github.com/nmap/nmap.git
synced 2025-12-19 14:09:02 +00:00
Use an fprintf and abort instead of Nsock's fatal.
In preparation for move to Nbase.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user