Discussion:
[tmux:tickets] #181 Race condition in new-session
Ole Tange
2015-02-14 23:47:56 UTC
Permalink
---

** [tickets:#181] Race condition in new-session**

**Status:** open
**Created:** Sat Feb 14, 2015 11:47 PM UTC by Ole Tange
**Last Updated:** Sat Feb 14, 2015 11:47 PM UTC
**Owner:** nobody

There seems to be a race condition:

$ tmux1.9 new-session -d 'sleep 10'; for i in `seq 341`; do tmux1.9 new-session -s p$i -d sleep' '$i ; done
create session failed: sleep 340: No such file or directory
create session failed: sleep 341: No such file or directory

But:

$ tmux1.9 new-session -d 'sleep 10'; for i in `seq 341`; do tmux1.9 new-session -s p$i -d sleep' '$i; sleep 0.01 ; done
# works

If the sleep is needed, tmux should do that itself and not force the user to figure that out on his own.


---

Sent from sourceforge.net because tmux-***@lists.sourceforge.net is subscribed to https://sourceforge.net/p/tmux/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
Loading...