[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/session.c between version 1.72 and 1.73

version 1.72, 2017/02/09 15:04:53 version 1.73, 2017/03/09 17:02:38
Line 355 
Line 355 
         }          }
         wl->session = s;          wl->session = s;
   
         env = environ_create();  
         environ_copy(global_environ, env);  
         environ_copy(s->environ, env);  
         server_fill_environ(s, env);  
   
         shell = options_get_string(s->options, "default-shell");          shell = options_get_string(s->options, "default-shell");
         if (*shell == '\0' || areshell(shell))          if (*shell == '\0' || areshell(shell))
                 shell = _PATH_BSHELL;                  shell = _PATH_BSHELL;
   
         hlimit = options_get_number(s->options, "history-limit");          hlimit = options_get_number(s->options, "history-limit");
           env = environ_for_session(s);
         w = window_create_spawn(name, argc, argv, path, shell, cwd, env, s->tio,          w = window_create_spawn(name, argc, argv, path, shell, cwd, env, s->tio,
             s->sx, s->sy, hlimit, cause);              s->sx, s->sy, hlimit, cause);
         if (w == NULL) {          if (w == NULL) {
Line 373 
Line 369 
                 return (NULL);                  return (NULL);
         }          }
         winlink_set_window(wl, w);          winlink_set_window(wl, w);
         notify_session_window("window-linked", s, w);  
         environ_free(env);          environ_free(env);
           notify_session_window("window-linked", s, w);
   
         session_group_synchronize_from(s);          session_group_synchronize_from(s);
         return (wl);          return (wl);

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73