Skip to content

Commit

Permalink
[XrdCl] Adjustments in LFH.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 17, 2018
1 parent 146afb6 commit 00bb35b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/XrdCl/XrdClLocalFileHandler.cc
Expand Up @@ -27,6 +27,7 @@
#include <string>
#include <memory>
#include <stdexcept>
#include <iostream>

#include <fcntl.h>
#include <stdio.h>
Expand Down Expand Up @@ -66,7 +67,7 @@ namespace
static SignalHandlerRegistrator registrator; // registers the signal handler

ptr->aio_sigevent.sigev_notify = SIGEV_SIGNAL;
ptr->aio_sigevent.sigev_signo = SIGUSR1;
ptr->aio_sigevent.sigev_signo = SIGRTMIN + 1;
}
else
{
Expand Down Expand Up @@ -131,7 +132,7 @@ namespace
newact.sa_sigaction = SignalHandler;
sigemptyset( &newact.sa_mask );
newact.sa_flags = SA_SIGINFO;
int rc = sigaction( SIGUSR1, &newact, &oldact );
int rc = sigaction( SIGRTMIN + 1, &newact, &oldact );
if( rc < 0 )
throw std::runtime_error( strerror( errno ) );
}
Expand Down Expand Up @@ -535,7 +536,7 @@ namespace XrdCl
return XRootDStatus();
}

HostList *hosts = new HostList( pHostList );
HostList *hosts = pHostList.empty() ? 0 : new HostList( pHostList );
LocalFileTask *task = new LocalFileTask( st, resp, hosts, handler );
jmngr->QueueJob( task );
return XRootDStatus();
Expand Down

0 comments on commit 00bb35b

Please sign in to comment.