Skip to content

Commit

Permalink
remove MINGW stuff that was never used
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 12, 2018
1 parent 49fc1d0 commit 755dd9a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/bin/radiusd.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ int main(int argc, char *argv[])

if (fr_radmin_start(config, radmin) < 0) EXIT_WITH_FAILURE;

#ifndef __MINGW32__
/*
* Disconnect from session
*/
Expand Down Expand Up @@ -605,11 +604,10 @@ int main(int argc, char *argv[])

/* so the pipe is correctly widowed if the parent exits?! */
close(from_child[0]);
# ifdef HAVE_SETSID
#ifdef HAVE_SETSID
setsid();
# endif
}
#endif
}

/*
* Ensure that we're using the CORRECT pid after forking, NOT the one
Expand Down Expand Up @@ -882,9 +880,7 @@ int main(int argc, char *argv[])
* Send a TERM signal to all associated processes
* (including us, which gets ignored.)
*/
#ifndef __MINGW32__
if (config->spawn_workers) kill(-radius_pid, SIGTERM);
#endif

/*
* We're exiting, so we can delete the PID file.
Expand Down

0 comments on commit 755dd9a

Please sign in to comment.