ipc: correctly shutdown IPC sockets when exiting/restarting

This commit is contained in:
Michael Stapelberg
2010-03-16 02:44:47 +01:00
parent fca826a6f9
commit f7a1a9fb20
5 changed files with 26 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include "ewmh.h"
#include "manage.h"
#include "workspace.h"
#include "ipc.h"
static iconv_t conversion_descriptor = 0;
struct keyvalue_table_head by_parent = TAILQ_HEAD_INITIALIZER(by_parent);
@ -513,6 +514,8 @@ static char **append_argument(char **original, char *argument) {
void i3_restart() {
restore_geometry(global_conn);
ipc_shutdown();
LOG("restarting \"%s\"...\n", start_argv[0]);
/* make sure -a is in the argument list or append it */
start_argv = append_argument(start_argv, "-a");