---

** [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-users@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.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to