Fetch the repository succeeded.
This action will force synchronization from 冰雪不语/iceftpd, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#include "common.h"
#include "session.h"
#include "ftpproto.h"
#include "privparent.h"
#include "privsock.h"
#include "sysutil.h"
void begin_session(session_t *sess)
{
activate_oobinline(sess->ctrl_fd);
priv_sock_init(sess);
pid_t pid;
pid = fork();
if (pid < 0)
ERR_EXIT("fork");
if (pid == 0) {
// ftp
priv_sock_set_child_context(sess);
handle_child(sess);
} else {
// nobody
priv_sock_set_parent_context(sess);
handle_parent(sess);
}
}
Sign in to post a comment
Comment ( 0 )