search for: wait_for_port_open_before_fork

Displaying 2 results from an estimated 2 matches for "wait_for_port_open_before_fork".

2002 Jan 11
1
X11 forwarding, -f, error handling
I'd like a feature whereby ssh puts itself in the background after the first successful X11 (or other port) forwarding. The reason for this is simple: error handling. If the application fails to open the X display and exits, then the client can still exit with the application's exit code. But if the application opens the X display successfully, then it can just display any errors by
2002 Feb 01
1
FEATURE: -f -f - fork after successful open of fwd port/display/agent
...ibute- -and copy this message.- -------------- next part -------------- Index: 3_0_2p1.1/ssh.c --- 3_0_2p1.1/ssh.c Wed, 21 Nov 2001 10:38:46 -0500 +++ 3_0_2p1_double_dash_f.1/ssh.c Fri, 01 Feb 2002 12:59:13 -0500 @@ -111,6 +111,7 @@ * background. */ int fork_after_authentication_flag = 0; +int wait_for_port_open_before_fork = 0; /* * General data structure for command line options and options configurable @@ -330,6 +331,8 @@ stdin_null_flag = 1; break; case 'f': + if (fork_after_authentication_flag) + wait_for_port_open_before_fork = 1; fork_after_authentication_flag = 1; stdin_nul...