From dffcad275f01e067c1df5d6f81e140a8db7287f5 Mon Sep 17 00:00:00 2001 From: Max Maischein Date: Wed, 22 May 2024 22:48:53 +0200 Subject: [PATCH] Only optionally create the TCP listener --- script/command-submit.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/command-submit.pl b/script/command-submit.pl index 5ea7e11..0df135b 100644 --- a/script/command-submit.pl +++ b/script/command-submit.pl @@ -138,11 +138,11 @@ ( @args ) END { unlink $domain_socket_name if $is_server }; # create domain socket for submitting more things -add_url_listener( path => $domain_socket_name ); +my $id = add_url_listener( path => $domain_socket_name ); $is_server = 1; # optionally output the domain socket name?! # create tcp socket for submitting more things -my $id = add_url_listener( address => 'localhost' ); +$id //= add_url_listener( address => 'localhost' ); # optionally write the TCP port to a file, as a shell statement (?!) # or maybe write it to fd 3 ? # create named pipe on Windows