Break the common process set up, event loop and imsg dispatch code

between server and client out into a separate internal API. This will
make it easier to add another process.
This commit is contained in:
nicm
2015-10-27 13:23:24 +00:00
parent 9952201ca7
commit 07b0ea03c3
13 changed files with 648 additions and 614 deletions

4
tmux.c
View File

@ -29,6 +29,7 @@
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "tmux.h"
@ -347,9 +348,6 @@ main(int argc, char **argv)
}
free(path);
/* Set process title. */
setproctitle("%s (%s)", __progname, socket_path);
/* Pass control to the client. */
exit(client_main(event_init(), argc, argv, flags));
}