[FreeBSD] non-login ssh drops connection on focus
waypipe ssh
without a command can run wayland clients fine but when using a command to run waypipe quickly exits. waypipe server
can run commands directly just fine.
$ cage waypipe -d ssh localhost weston-terminal
c85437:70.969081 [client.c:132] A wayland compositor is available. Proceeding.
s85477:71.400469 [server.c: 46] I'm a server on /tmp/waypipe-server-llBdPJut.sock, running: weston-terminal
s85477:71.401217 [server.c:115] Server main!
s85480:71.408330 [shadow.c:1731] Opening worker thread 2
s85480:71.408323 [shadow.c:1731] Opening worker thread 1
s85480:71.408353 [shadow.c:1731] Opening worker thread 3
s85480:71.408406 [parsing.c:268] Set up 33 ffi functions, with 170 types total
s85480:71.408440 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
s85480:71.408447 [mainloop.c:808] We are transferring a data buffer with 24 bytes
s85480:71.408457 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 48
s85480:71.408465 [mainloop.c:716] The 48-byte, 3 block message from application to channel has been written
c85481:71.409234 [shadow.c:1731] Opening worker thread 1
c85481:71.409313 [shadow.c:1731] Opening worker thread 3
c85481:71.409248 [shadow.c:1731] Opening worker thread 2
c85481:71.409421 [parsing.c:268] Set up 33 ffi functions, with 170 types total
c85481:71.409491 [mainloop.c:465] Read 40 byte msg, unpacking
c85481:71.409494 [mainloop.c:478] Read 40 byte msg, 0 fds, 0 transfers. Data buffer has 24 bytes
c85481:71.409538 [mainloop.c:630] Wrote, have done 24/24 bytes in chunk 24, 0/0 fds
c85481:71.409541 [mainloop.c:640] Write to the compositor succeeded
c85481:71.409710 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.415687 [mainloop.c:808] We are transferring a data buffer with 528 bytes
c85481:71.415694 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 552
c85481:71.415705 [mainloop.c:716] The 552-byte, 3 block message from compositor to channel has been written
s85480:71.415784 [mainloop.c:465] Read 544 byte msg, unpacking
s85480:71.415789 [mainloop.c:478] Read 544 byte msg, 0 fds, 0 transfers. Data buffer has 528 bytes
s85480:71.420201 [mainloop.c:630] Wrote, have done 528/528 bytes in chunk 528, 0/0 fds
s85480:71.420206 [mainloop.c:640] Write to the application succeeded
could not load theme '(null)'
s85480:71.434458 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
s85480:71.434480 [mainloop.c:808] We are transferring a data buffer with 376 bytes
s85480:71.434483 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 400
s85480:71.434486 [mainloop.c:716] The 400-byte, 3 block message from application to channel has been written
c85481:71.434526 [mainloop.c:465] Read 392 byte msg, unpacking
c85481:71.434529 [mainloop.c:478] Read 392 byte msg, 0 fds, 0 transfers. Data buffer has 376 bytes
c85481:71.434546 [mainloop.c:630] Wrote, have done 376/376 bytes in chunk 376, 0/0 fds
c85481:71.434548 [mainloop.c:640] Write to the compositor succeeded
c85481:71.434656 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.434661 [mainloop.c:808] We are transferring a data buffer with 228 bytes
c85481:71.434663 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 256
c85481:71.434667 [mainloop.c:716] The 256-byte, 3 block message from compositor to channel has been written
s85480:71.434700 [mainloop.c:465] Read 248 byte msg, unpacking
s85480:71.434703 [mainloop.c:478] Read 248 byte msg, 0 fds, 0 transfers. Data buffer has 228 bytes
s85480:71.434708 [mainloop.c:630] Wrote, have done 228/228 bytes in chunk 228, 0/0 fds
s85480:71.434710 [mainloop.c:640] Write to the application succeeded
s85480:71.438991 [mainloop.c:768] Read 1 new file descriptors, have 1 total now
s85480:71.439004 [shadow.c:502] Creating new shadow buffer for local fd 6
s85480:71.439040 [mainloop.c:808] We are transferring a data buffer with 348 bytes
s85480:71.439952 [mainloop.c:831] Packed message size (1 fds, 2 blobs, 5 blocks): 1583392
s85480:71.445699 [mainloop.c:716] The 1583392-byte, 5 block message from application to channel has been written
c85481:71.445781 [mainloop.c:465] Read 1583384 byte msg, unpacking
c85481:71.445789 [mainloop.c:478] Read 1583384 byte msg, 1 fds, 1 transfers. Data buffer has 348 bytes
c85481:71.445792 [shadow.c:1188] Introducing new fd, remoteid=1
c85481:71.446946 [mainloop.c:132] Writing 1 fds to cmsg data
c85481:71.446960 [mainloop.c:630] Wrote, have done 348/348 bytes in chunk 348, 1/1 fds
c85481:71.446962 [mainloop.c:640] Write to the compositor succeeded
c85481:71.448242 [mainloop.c:768] Read 1 new file descriptors, have 1 total now
c85481:71.448251 [shadow.c:502] Creating new shadow buffer for local fd 7
c85481:71.448271 [mainloop.c:808] We are transferring a data buffer with 164 bytes
c85481:71.448284 [mainloop.c:831] Packed message size (1 fds, 2 blobs, 5 blocks): 45216
c85481:71.448451 [mainloop.c:716] The 45216-byte, 5 block message from compositor to channel has been written
s85480:71.448775 [mainloop.c:465] Read 45208 byte msg, unpacking
s85480:71.448783 [mainloop.c:478] Read 45208 byte msg, 1 fds, 1 transfers. Data buffer has 164 bytes
s85480:71.448785 [shadow.c:1188] Introducing new fd, remoteid=-1
s85480:71.448887 [mainloop.c:132] Writing 1 fds to cmsg data
s85480:71.448897 [mainloop.c:630] Wrote, have done 164/164 bytes in chunk 164, 1/1 fds
s85480:71.448900 [mainloop.c:640] Write to the application succeeded
s85480:71.455001 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
s85480:71.455007 [mainloop.c:808] We are transferring a data buffer with 44 bytes
s85480:71.455012 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 72
s85480:71.455021 [mainloop.c:716] The 72-byte, 3 block message from application to channel has been written
c85481:71.455079 [mainloop.c:465] Read 64 byte msg, unpacking
c85481:71.455082 [mainloop.c:478] Read 64 byte msg, 0 fds, 0 transfers. Data buffer has 44 bytes
c85481:71.455087 [mainloop.c:630] Wrote, have done 44/44 bytes in chunk 44, 0/0 fds
c85481:71.455089 [mainloop.c:640] Write to the compositor succeeded
c85481:71.460796 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.460808 [mainloop.c:808] We are transferring a data buffer with 24 bytes
c85481:71.460811 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 48
c85481:71.460817 [mainloop.c:716] The 48-byte, 3 block message from compositor to channel has been written
s85480:71.460902 [mainloop.c:465] Read 40 byte msg, unpacking
s85480:71.460908 [mainloop.c:478] Read 40 byte msg, 0 fds, 0 transfers. Data buffer has 24 bytes
s85480:71.460916 [mainloop.c:630] Wrote, have done 24/24 bytes in chunk 24, 0/0 fds
s85480:71.460918 [mainloop.c:640] Write to the application succeeded
s85480:71.476399 [mainloop.c:768] Read 1 new file descriptors, have 1 total now
s85480:71.476411 [shadow.c:502] Creating new shadow buffer for local fd 8
s85480:71.476458 [mainloop.c:808] We are transferring a data buffer with 296 bytes
Unknown parameter: ?2004
s85480:71.485823 [mainloop.c:831] Packed message size (1 fds, 2 blobs, 5 blocks): 17994592
s85480:71.544500 [mainloop.c:716] The 17994592-byte, 5 block message from application to channel has been written
c85481:71.544577 [mainloop.c:465] Read 17994584 byte msg, unpacking
c85481:71.544582 [mainloop.c:478] Read 17994584 byte msg, 1 fds, 1 transfers. Data buffer has 296 bytes
c85481:71.544586 [shadow.c:1188] Introducing new fd, remoteid=2
c85481:71.556560 [mainloop.c:132] Writing 1 fds to cmsg data
c85481:71.556571 [mainloop.c:630] Wrote, have done 296/296 bytes in chunk 296, 1/1 fds
c85481:71.556573 [mainloop.c:640] Write to the compositor succeeded
c85481:71.566527 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.566640 [mainloop.c:808] We are transferring a data buffer with 56 bytes
c85481:71.566644 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 80
c85481:71.566650 [mainloop.c:716] The 80-byte, 3 block message from compositor to channel has been written
s85480:71.566720 [mainloop.c:465] Read 72 byte msg, unpacking
s85480:71.566725 [mainloop.c:478] Read 72 byte msg, 0 fds, 0 transfers. Data buffer has 56 bytes
s85480:71.566797 [mainloop.c:630] Wrote, have done 56/56 bytes in chunk 56, 0/0 fds
s85480:71.566799 [mainloop.c:640] Write to the application succeeded
c85481:71.567213 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.567222 [mainloop.c:808] We are transferring a data buffer with 24 bytes
c85481:71.567225 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 48
c85481:71.567229 [mainloop.c:716] The 48-byte, 3 block message from compositor to channel has been written
s85480:71.567308 [mainloop.c:465] Read 40 byte msg, unpacking
s85480:71.567315 [mainloop.c:478] Read 40 byte msg, 0 fds, 0 transfers. Data buffer has 24 bytes
s85480:71.567325 [mainloop.c:630] Wrote, have done 24/24 bytes in chunk 24, 0/0 fds
s85480:71.567328 [mainloop.c:640] Write to the application succeeded
s85480:71.581999 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
s85480:71.582009 [mainloop.c:808] We are transferring a data buffer with 64 bytes
s85480:71.582010 [interval.c:213] Damage interval: {1(1)} -> [2147483647, -2147483648) [17994240], 1.000000
s85480:71.583633 [shadow.c:989] Diff+comp construction end: 6656/17994240
s85480:71.583641 [mainloop.c:831] Packed message size (0 fds, 2 blobs, 5 blocks): 6760
s85480:71.583649 [mainloop.c:716] The 6760-byte, 5 block message from application to channel has been written
c85481:71.583763 [mainloop.c:465] Read 6752 byte msg, unpacking
c85481:71.583767 [mainloop.c:478] Read 6752 byte msg, 0 fds, 1 transfers. Data buffer has 64 bytes
c85481:71.583780 [mainloop.c:630] Wrote, have done 64/64 bytes in chunk 64, 0/0 fds
c85481:71.583782 [mainloop.c:640] Write to the compositor succeeded
c85481:71.587274 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.587285 [mainloop.c:808] We are transferring a data buffer with 8 bytes
c85481:71.587287 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 32
c85481:71.587293 [mainloop.c:716] The 32-byte, 3 block message from compositor to channel has been written
s85480:71.587447 [mainloop.c:465] Read 24 byte msg, unpacking
s85480:71.587458 [mainloop.c:478] Read 24 byte msg, 0 fds, 0 transfers. Data buffer has 8 bytes
s85480:71.587474 [mainloop.c:630] Wrote, have done 8/8 bytes in chunk 8, 0/0 fds
s85480:71.587476 [mainloop.c:640] Write to the application succeeded
c85481:71.587522 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:71.587533 [mainloop.c:808] We are transferring a data buffer with 24 bytes
c85481:71.587539 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 48
c85481:71.587558 [mainloop.c:716] The 48-byte, 3 block message from compositor to channel has been written
s85480:71.587608 [mainloop.c:465] Read 40 byte msg, unpacking
s85480:71.587612 [mainloop.c:478] Read 40 byte msg, 0 fds, 0 transfers. Data buffer has 24 bytes
s85480:71.587618 [mainloop.c:630] Wrote, have done 24/24 bytes in chunk 24, 0/0 fds
s85480:71.587621 [mainloop.c:640] Write to the application succeeded
------------------ focusing on weston-terminal ------------------
c85481:74.706521 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:74.706528 [mainloop.c:808] We are transferring a data buffer with 40 bytes
c85481:74.706530 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 64
c85481:74.706538 [mainloop.c:716] The 64-byte, 3 block message from compositor to channel has been written
s85480:74.706597 [mainloop.c:465] Read 56 byte msg, unpacking
s85480:74.706602 [mainloop.c:478] Read 56 byte msg, 0 fds, 0 transfers. Data buffer has 40 bytes
s85480:74.706609 [mainloop.c:630] Wrote, have done 40/40 bytes in chunk 40, 0/0 fds
s85480:74.706611 [mainloop.c:640] Write to the application succeeded
S85480:74.706648 [mainloop.c:989] Connection hang-up detected
s85480:74.707311 [shadow.c:1772] Closing worker thread 1
s85480:74.707311 [shadow.c:1772] Closing worker thread 3
s85480:74.707309 [shadow.c:1772] Closing worker thread 2
c85481:74.708635 [mainloop.c:768] Read 0 new file descriptors, have 0 total now
c85481:74.708658 [mainloop.c:808] We are transferring a data buffer with 28 bytes
c85481:74.708665 [mainloop.c:831] Packed message size (0 fds, 1 blobs, 3 blocks): 56
c85481:74.708675 [mainloop.c:716] The 56-byte, 3 block message from compositor to channel has been written
c85481:74.708748 [mainloop.c:554] Channel connection closed
c85481:74.709871 [shadow.c:1772] Closing worker thread 1
c85481:74.709871 [shadow.c:1772] Closing worker thread 2
c85481:74.709871 [shadow.c:1772] Closing worker thread 3
s85477:74.712403 [util.c:161] Child process 85479 has died
s85477:74.712442 [server.c:146] Child program has died, exiting
s85477:74.712549 [server.c:212] Waiting for child handlers and program
s85477:74.714151 [util.c:161] Child process 85480 has died
s85477:74.714179 [server.c:219] Program ended
c85437:74.717476 [util.c:161] Child process 85438 has died
c85437:74.717489 [client.c:161] Child (ssh) died, exiting
c85437:74.718562 [util.c:161] Child process 85481 has died