You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my analysis of #32 I hit a behavior of zdctl start for daemon off mode which I consider a bug but which might be a feature:
In daemon off mode, zdctl start starts a zdrun process (which in turn starts the "program process") but waits for the zdrun process to terminate. This will only happen when the "program process" terminates (more or less regularly) or the zdrun process gets terminated by a signal.
This makes zdctl start behave very much like zdctl fg; the difference: the intermediate zdrun process may restart the "program process" should this terminate irregularly.
In daemon on mode, zdctl start returns immediately after the zdrun process is started; the zdrun and "program" processes can then be controlled via subsequent zdctl commands.
I expected the zdctl start behavior independent of "daemon" mode, because "daemon mode" essentially controls whether the effective zdrun process should be a true daemon (with its own process group, detached from the control terminal, input and output streams redirected to /dev/null, ...).
I found, however, that zdctl start in daemon off mode is more like zdctl fg than zdctl start (in `daemon on' mode).
I was interested in daemon off mode to be able to debug the zdrun process. In demon on mode, the zdrun process has its input and output streams (used by the debugger) redirected to /dev/null, making debugging extremely difficult. I found that the "transcript" feature (controlled via the -t option) allows at least the use of debugging output.
I have a patch to make the zdctl start behavior independent of the "daemon" mode. However, this would break cases depending on the current behavior.
The text was updated successfully, but these errors were encountered:
During my analysis of #32 I hit a behavior of
zdctl start
fordaemon off
mode which I consider a bug but which might be a feature:In
daemon off
mode,zdctl start
starts azdrun
process (which in turn starts the "program process") but waits for thezdrun
process to terminate. This will only happen when the "program process" terminates (more or less regularly) or thezdrun
process gets terminated by a signal.This makes
zdctl start
behave very much likezdctl fg
; the difference: the intermediatezdrun
process may restart the "program process" should this terminate irregularly.In
daemon on
mode,zdctl start
returns immediately after thezdrun
process is started; thezdrun
and "program" processes can then be controlled via subsequentzdctl
commands.I expected the
zdctl start
behavior independent of "daemon" mode, because "daemon mode" essentially controls whether the effectivezdrun
process should be a true daemon (with its own process group, detached from the control terminal, input and output streams redirected to/dev/null
, ...).I found, however, that
zdctl start
indaemon off
mode is more likezdctl fg
thanzdctl start
(in `daemon on' mode).I was interested in
daemon off
mode to be able to debug thezdrun
process. Indemon on
mode, thezdrun
process has its input and output streams (used by the debugger) redirected to/dev/null
, making debugging extremely difficult. I found that the "transcript" feature (controlled via the-t
option) allows at least the use of debugging output.I have a patch to make the
zdctl start
behavior independent of the "daemon" mode. However, this would break cases depending on the current behavior.The text was updated successfully, but these errors were encountered: