version 1.31, 2009/08/11 17:18:35 |
version 1.32, 2009/08/12 09:14:25 |
|
|
|
|
log_close(); |
log_close(); |
if (debug_level > 0) { |
if (debug_level > 0) { |
xasprintf( |
xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid()); |
&path, "%s-%s-%ld.log", __progname, name, (long) getpid()); |
|
log_open_file(debug_level, path); |
log_open_file(debug_level, path); |
xfree(path); |
xfree(path); |
} |
} |
|
|
u_int uid; |
u_int uid; |
|
|
uid = getuid(); |
uid = getuid(); |
xsnprintf(base, MAXPATHLEN, "%s/%s-%d", _PATH_TMP, __progname, uid); |
xsnprintf(base, MAXPATHLEN, "%s/tmux-%d", _PATH_TMP, uid); |
|
|
if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST) |
if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST) |
return (NULL); |
return (NULL); |