examples/portscanner: quick hack to make it work on single host/portrange
[rofl0r-rocksock.git] / rocksockserver_set_signalfd.c
blob772dfdeb7b7e408ab0fc2a0a799407c1c9243c4b
1 #include "rocksockserver.h"
2 // pass the reading end of a pipe
3 void rocksockserver_set_signalfd(rocksockserver* srv, int signalfd) {
4 srv->signalfd = signalfd;
5 rocksockserver_watch_fd(srv, signalfd);