Apache OpenOffice (AOO) Bugzilla – Issue 102064
soffice -accept=socket should exit with error if port busy
Last modified: 2013-08-07 15:31:14 UTC
OOo can be made to listen on a given port for use with remote UNO by starting it with the -accept switch, e.g.: $ soffice "-accept=socket,host=0,port=2002;urp;" If there already is another process listening on the same port (e.g. a web server), I would expect the above command to exit with a code other than 0. Instead it starts anyway apparently without errors, but of course it won't be listening on the port that was already busy. So an external application starting OOo won't be notified of any errors, but won't be able to connect to it either. Additionally, OOo seems to consume 100% of one CPU. (This may or may not be related to issue 94471.)
this bothers me as well: if i accidentally start two offices with -accept and then some unit test, the results are generally puzzling...