summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c9d7c47)
They don't like it. Whose stupid idea was it to send stderr to the
socket in inetd anyway?
#include "addrcheck.h"
#include <errno.h>
#include <unistd.h>
#include "addrcheck.h"
#include <errno.h>
#include <unistd.h>
/* #define DEBUG */
#ifdef DEBUG
/* #define DEBUG */
#ifdef DEBUG
if (pipe(p) || (kid = fork()) == -1)
return (-1);
if (!kid) {
if (pipe(p) || (kid = fork()) == -1)
return (-1);
if (!kid) {
+ close(0); open("/dev/null", O_RDONLY);
- close(p[0]);
- close(p[1]);
+ close(2); open("/dev/null", O_WRONLY);
+ close(p[0]); close(p[1]);
execl("/usr/bin/userv", "/usr/bin/userv",
"-f", "stdin=/dev/null",
u.s, serv.s,
execl("/usr/bin/userv", "/usr/bin/userv",
"-f", "stdin=/dev/null",
u.s, serv.s,