Skip to content

Disable console window for subprocesses#264

Merged
inureyes merged 3 commits into
lablup:mainfrom
llMBQll:window-flash-fix
Jun 25, 2026
Merged

Disable console window for subprocesses#264
inureyes merged 3 commits into
lablup:mainfrom
llMBQll:window-flash-fix

Conversation

@llMBQll

@llMBQll llMBQll commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Disable console window for subprocesses. This prevents from terminal windows flashing when using all-smi as a library in windows GUI applications.

Fixes #263

@cla-assistant

cla-assistant Bot commented Jun 9, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cla-assistant

cla-assistant Bot commented Jun 9, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@llMBQll llMBQll force-pushed the window-flash-fix branch from 158bfe5 to c9829cd Compare June 10, 2026 17:04
inureyes added 2 commits June 25, 2026 10:47
Three std::process::Command imports were left unused after spawn sites moved to new_command, failing cargo clippy -- -D warnings on Linux (tpu_info_runner.rs, hlsmi/process.rs) and macOS (cpu_macos.rs). Also add the Apache license header to the new src/utils/command.rs and fix a doc-comment typo.
Add a clippy disallowed-methods rule for std::process::Command::new so any new direct spawn site fails cargo clippy -D warnings (which CI already runs), turning the always-use-new_command convention into an enforced invariant that cannot silently regress the Windows console-window fix (lablup#263). Also widen new_command to accept impl AsRef<OsStr> to match std Command::new.
@inureyes inureyes self-assigned this Jun 25, 2026
@inureyes inureyes merged commit 16e4853 into lablup:main Jun 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suppress flashing console windows on Windows when spawning detection subprocesses

2 participants