1
0
Fork 0
forked from soccera/rdo

lock tty ioctl to openbsd

This commit is contained in:
sw1tchbl4d3 2023-02-05 12:43:21 +01:00
parent 4309fe26d9
commit 81a2ea4414

View file

@ -8,10 +8,6 @@
#include <fcntl.h>
#include <time.h>
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__BSD__) || defined(BSD)
#define RDO_USE_IOCTL 1
#endif
int getpstartts(int pid, unsigned long long* startts) {
char path[255], fc[1024];
char* ptr = fc;
@ -82,7 +78,7 @@ int ensuredir() {
return 0;
}
#ifdef RDO_USE_IOCTL
#ifdef __OpenBSD__
void setsession(int ts_ttl) {
if (ts_ttl <= 0)