fix remaining contrived issues re HANGUPHANDLING
This commit is contained in:
@@ -1730,7 +1730,11 @@ static int lockfd = -1; /* for lock_file() to pass to unlock_file() */
|
||||
struct flock sflock; /* for unlocking, same as above */
|
||||
#endif
|
||||
|
||||
#if defined(HANGUPHANDLING)
|
||||
#define HUP if (!gp.program_state.done_hup)
|
||||
#else
|
||||
#define HUP
|
||||
#endif
|
||||
|
||||
#ifndef USE_FCNTL
|
||||
static char *
|
||||
|
||||
@@ -40,7 +40,7 @@ static void zerocomp_bwrite(int, genericptr_t, unsigned int);
|
||||
static void zerocomp_bputc(int);
|
||||
#endif
|
||||
|
||||
#if defined(UNIX) || defined(VMS) || defined(__EMX__) || defined(WIN32)
|
||||
#if defined(HANGUPHANDLING)
|
||||
#define HUP if (!gp.program_state.done_hup)
|
||||
#else
|
||||
#define HUP
|
||||
@@ -58,7 +58,7 @@ dosave(void)
|
||||
} else {
|
||||
clear_nhwindow(WIN_MESSAGE);
|
||||
pline("Saving...");
|
||||
#if defined(UNIX) || defined(VMS) || defined(__EMX__)
|
||||
#if defined(HANGUPHANDLING)
|
||||
gp.program_state.done_hup = 0;
|
||||
#endif
|
||||
if (dosave0()) {
|
||||
|
||||
@@ -193,7 +193,7 @@ bwrite(int fd, const genericptr_t loc, unsigned num)
|
||||
#endif
|
||||
}
|
||||
if (failed) {
|
||||
#if defined(UNIX) || defined(VMS) || defined(__EMX__)
|
||||
#if defined(HANGUPHANDLING)
|
||||
if (gp.program_state.done_hup)
|
||||
nh_terminate(EXIT_FAILURE);
|
||||
else
|
||||
|
||||
@@ -644,7 +644,7 @@ topten(int how, time_t when)
|
||||
gt.toptenwin = create_nhwindow(NHW_TEXT);
|
||||
}
|
||||
|
||||
#if defined(UNIX) || defined(VMS) || defined(__EMX__)
|
||||
#if defined(HANGUPHANDLING)
|
||||
#define HUP if (!gp.program_state.done_hup)
|
||||
#else
|
||||
#define HUP
|
||||
|
||||
Reference in New Issue
Block a user