Unset _I3_RESTART_FD after restart (#3775)

Closes #3764
Closes #3765
This commit is contained in:
David Shen 2019-08-28 02:54:10 -04:00 committed by Michael Stapelberg
parent 7b33e06b9d
commit efe84764b0
1 changed files with 1 additions and 0 deletions

View File

@ -868,6 +868,7 @@ int main(int argc, char *argv[]) {
DLOG("serving restart fd %d", restart_fd);
ipc_client *client = ipc_new_client_on_fd(main_loop, restart_fd);
ipc_confirm_restart(client);
unsetenv("_I3_RESTART_FD");
}
}