mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Remeoved alarm() function for Windows
This commit is contained in:
parent
d153ab0ba0
commit
15ecf9fe52
@ -144,7 +144,7 @@
|
|||||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</BrowseInformation>
|
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</BrowseInformation>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\..\mxml\mxml.c">
|
<ClCompile Include="..\..\mxml\mxml.c">
|
||||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">HAVE_STRLCPY;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\regex.c">
|
<ClCompile Include="..\src\regex.c">
|
||||||
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">TurnOffAllWarnings</WarningLevel>
|
<WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">TurnOffAllWarnings</WarningLevel>
|
||||||
|
|||||||
@ -28530,12 +28530,16 @@ void hup_handler(int sig)
|
|||||||
_hup = TRUE;
|
_hup = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OS_WINNT
|
||||||
|
|
||||||
void alarm_handler(int sig)
|
void alarm_handler(int sig)
|
||||||
{
|
{
|
||||||
if (sig)
|
if (sig)
|
||||||
alarm(3);
|
alarm(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
@ -28790,7 +28794,9 @@ void server_loop(void)
|
|||||||
alarm_handle.sa_flags = 0;
|
alarm_handle.sa_flags = 0;
|
||||||
sigaction(SIGALRM, &alarm_handle, NULL);
|
sigaction(SIGALRM, &alarm_handle, NULL);
|
||||||
|
|
||||||
|
#ifndef OS_WINNT
|
||||||
alarm(3); // prevents blocking send() operations
|
alarm(3); // prevents blocking send() operations
|
||||||
|
#endif
|
||||||
|
|
||||||
/* give up root privilege */
|
/* give up root privilege */
|
||||||
if (geteuid() == 0) {
|
if (geteuid() == 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user