Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
d901e9b2
Commit
d901e9b2
authored
Oct 28, 2021
by
Adriaan de Groot
💬
Committed by
Kurt Hindenburg
Oct 29, 2021
Browse files
Expand documentation of isForegroundProcessActive()
- add examples - note that no-process-is-running returns false
parent
c2a0e4cf
Pipeline
#92318
passed with stage
in 1 minute and 52 seconds
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
src/session/Session.h
View file @
d901e9b2
...
...
@@ -309,7 +309,19 @@ public:
/** See setAutoClose() */
bool
autoClose
()
const
;
/** Returns true if the user has started a program in the session. */
/**
* Returns true if the user has started a program in the session.
* Examples of what counts as a "program" are:
* - `vim` (interactive, blocks the shell)
* - `find /` (non-interactive, potentially long-running, blocks the shell)
* - a sub-shell started by hand (e.g. running `/bin/bash` from the shell in the session)
* **Non** examples are:
* - the shell started by the session (e.g. `/bin/bash`)
* - backgrounded processes (e.g. `find / &`)
*
* If all processes in the session have exited already, returns false.
*
*/
bool
isForegroundProcessActive
();
/** Returns the name of the current foreground process. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment