Print this page
make: unifdef for other OSes (undefined)
@@ -59,13 +59,11 @@
# include <rx/api.h>
#endif
#include <signal.h>
-#ifndef HP_UX
# include <stropts.h>
-#endif
#include <sys/errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/utsname.h> /* uname() */
@@ -3557,15 +3555,11 @@
switch (child) {
case -1:
break;
case 0:
enable_interrupt((void (*) (int))SIG_DFL);
-#ifdef linux
- (void) signal(SIGUSR1, Avo_PollResultsAction_Sigusr1Handler);
-#else
(void) sigset(SIGUSR1, Avo_PollResultsAction_Sigusr1Handler);
-#endif
pollResultsAction(outFn, errFn);
exit(0);
break;
default:
@@ -3615,26 +3609,18 @@
outFn, strerror(errno));
exit(1);
}
while (!pollResultsActionTimeToFinish && stat(outFn, &statbuf) == 0) {
-#ifdef linux
- if ((statbuf.st_mtime > file_time)
- ) {
- file_time = statbuf.st_mtime;
- rxmGetNextResultsBlock(fd);
- }
-#else
if ((statbuf.st_mtim.tv_sec > file_time) ||
((statbuf.st_mtim.tv_sec == file_time) &&
(statbuf.st_mtim.tv_nsec > file_time_nsec))
) {
file_time = statbuf.st_mtim.tv_sec;
file_time_nsec = statbuf.st_mtim.tv_nsec;
rxmGetNextResultsBlock(fd);
}
-#endif
us_sleep(STAT_RETRY_SLEEP_TIME);
}
// Check for the rest of output
rxmGetNextResultsBlock(fd);