When I run start-desktop with --exit-with-children=yes, then exit the child, the xpra server terminates as expected, but with exit code 1, and an error:
2018-07-06 11:42:32,584 child 'xterm' with pid 1166 has terminated 2018-07-06 11:42:32,584 all children have exited and --exit-with-children was specified, exiting 2018-07-06 11:42:32,585 Disconnecting client Protocol(unix-domain socket:/home/chrome/.xpra/85d3f5123030-0): 2018-07-06 11:42:32,586 server shutdown 2018-07-06 11:42:32,591 xpra client 1 disconnected. 2018-07-06 11:42:32,592 sound source stopping 2018-07-06 11:42:33,102 killing xvfb with pid 1107 2018-07-06 11:42:33,102 removing socket /home/chrome/.xpra/85d3f5123030-0 (II) Server terminated successfully (0). Closing log file. Xpra: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
commandline: xpra start-desktop --resize-display=no --start="xrandr -s 1920x1080" --daemon=no --exit-with-children=yes --socket-dir=$HOME/.xpra --start-child="xterm" works
system: debian 9 (stretch) xpra: v2.3.1-r19531 running in docker X.Org X Server 1.19.2
As per ticket:1904#comment:3, this is already fixed and will be included in 2.3.3
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1914