mirror of
https://github.com/kingk85/uFTP.git
synced 2025-07-17 17:26:11 +03:00
Merge branch 'master' of https://github.com/kingk85/uFTP
This commit is contained in:
@ -89,21 +89,22 @@ void configurationRead(ftpParameters_DataType *ftpParameters)
|
|||||||
|
|
||||||
void applyConfiguration(ftpParameters_DataType *ftpParameters)
|
void applyConfiguration(ftpParameters_DataType *ftpParameters)
|
||||||
{
|
{
|
||||||
if (ftpParameters->singleInstanceModeOn == 1)
|
/* Fork the process daemon mode */
|
||||||
{
|
if (ftpParameters->daemonModeOn == 1)
|
||||||
int returnCode = isProcessAlreadyRunning();
|
{
|
||||||
if (returnCode == 1)
|
daemonize("uFTP");
|
||||||
{
|
}
|
||||||
printf("\nThe process is already running..");
|
|
||||||
exit(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fork the process daemon mode */
|
if (ftpParameters->singleInstanceModeOn == 1)
|
||||||
if (ftpParameters->daemonModeOn == 1)
|
{
|
||||||
{
|
int returnCode = isProcessAlreadyRunning();
|
||||||
daemonize("uFTP");
|
|
||||||
}
|
if (returnCode == 1)
|
||||||
|
{
|
||||||
|
printf("\nThe process is already running..");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void initFtpData(ftpDataType *ftpData)
|
void initFtpData(ftpDataType *ftpData)
|
||||||
|
Reference in New Issue
Block a user