Comment 12 for bug 713879

Revision history for this message
Scott Moser (smoser) wrote :

Just as a point of reference:
$ dpkg-query --show byobu
byobu 4.37-0ubuntu1

$ bhome=/home/smoser/t/byobu-home
$ mkdir -p $bhome
$ i=1; while :; do i=$(($i+1)); echo -n = $i =:; \
   HOME=$bhome sh -c "ulimit -n $i && exec byobu true" && break; done
=== 2 ===:/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24
=== 3 ===:/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24
=== 4 ===:/bin/sh: 3: Invalid argument
=== 5 ===:/bin/sh: 3: Invalid argument
=== 6 ===:/bin/sh: 3: Invalid argument
=== 7 ===:/bin/sh: 3: Invalid argument
=== 8 ===:/bin/sh: 3: Invalid argument
=== 9 ===:/bin/sh: 3: Invalid argument
=== 10 ===:/bin/sh: 3: Invalid argument
=== 11 ===:.: 41: 3: Too many open files
=== 12 ===:.: 39: 3: Too many open files
=== 13 ===:.: 37: 3: Too many open files
=== 14 ===:=== 15 ===:[screen is terminating]

What the above shows is that 'ulimit -n 15' worked. Anything less than that
was insufficient. The alternate 'HOME' was just to get default byobu configuration. By comparison, 'screen true' will run with 5.

Just information.