Sync OpenBSD patchset 1043:

Use a lock file and flock() to serialize server start, avoids problems
when running a bunch of tmux from cron at the same time. Based on a diff
from Tim Ruehsen.
This commit is contained in:
Tiago Cunha
2012-03-18 01:28:10 +00:00
parent 9b8fc982ec
commit 40b1d64ce7
3 changed files with 46 additions and 15 deletions

2
tmux.h
View File

@ -1683,7 +1683,7 @@ const char *key_string_lookup_key(int);
extern struct clients clients;
extern struct clients dead_clients;
extern struct paste_stack global_buffers;
int server_start(void);
int server_start(int, char *);
void server_update_socket(void);
/* server-client.c */