https://github.com/bcgsc/ntCard
Tip revision: 0135d929301d24c464d843573e4ea56cd0f3e139 authored by Johnathan Wong on 22 April 2021, 00:47:28 UTC
ntcard.cpp: update low kmer sample check to evaluate entire expression
ntcard.cpp: update low kmer sample check to evaluate entire expression
Tip revision: 0135d92
Fcontrol.cpp
#include "Fcontrol.h"
#include <fcntl.h>
/* Set the FD_CLOEXEC flag of the specified file descriptor. */
int setCloexec(int fd)
{
int flags = fcntl(fd, F_GETFD, 0);
if (flags == -1)
return -1;
flags |= FD_CLOEXEC;
return fcntl(fd, F_SETFD, flags);
}